~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/cabac.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * You should have received a copy of the GNU Lesser General Public
18
18
 * License along with FFmpeg; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 
 *
21
20
 */
22
21
 
23
22
/**
179
178
    }
180
179
}
181
180
 
182
 
#if 0 //selftest
 
181
#ifdef TEST
 
182
#undef random
183
183
#define SIZE 10240
184
184
 
185
185
#include "avcodec.h"
 
186
#include "cabac.h"
186
187
 
187
 
int main(){
 
188
int main(void){
188
189
    CABACContext c;
189
190
    uint8_t b[9*SIZE];
190
191
    uint8_t r[9*SIZE];
192
193
    uint8_t state[10]= {0};
193
194
 
194
195
    ff_init_cabac_encoder(&c, b, SIZE);
195
 
    ff_init_cabac_states(&c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64);
 
196
    ff_init_cabac_states(&c);
196
197
 
197
198
    for(i=0; i<SIZE; i++){
198
199
        r[i]= random()%7;
262
263
    return 0;
263
264
}
264
265
 
265
 
#endif
 
266
#endif /* TEST */