Mercurial > libavcodec.hg
comparison mpegvideo.c @ 333:8aa87f1dfc52 libavcodec
divx 5.01 support
author | michaelni |
---|---|
date | Mon, 22 Apr 2002 12:45:22 +0000 |
parents | 5cc47d0ba53e |
children | c56b45669214 |
comparison
equal
deleted
inserted
replaced
332:207cc56d18f8 | 333:8aa87f1dfc52 |
---|---|
290 /* which mb is a intra block */ | 290 /* which mb is a intra block */ |
291 s->mbintra_table = av_mallocz(s->mb_num); | 291 s->mbintra_table = av_mallocz(s->mb_num); |
292 if (!s->mbintra_table) | 292 if (!s->mbintra_table) |
293 goto fail; | 293 goto fail; |
294 memset(s->mbintra_table, 1, s->mb_num); | 294 memset(s->mbintra_table, 1, s->mb_num); |
295 | |
296 /* divx501 bitstream reorder buffer */ | |
297 s->bitstream_buffer= av_mallocz(BITSTREAM_BUFFER_SIZE); | |
298 if (!s->bitstream_buffer) | |
299 goto fail; | |
295 } | 300 } |
296 /* default structure is frame */ | 301 /* default structure is frame */ |
297 s->picture_structure = PICT_FRAME; | 302 s->picture_structure = PICT_FRAME; |
298 | 303 |
299 /* init macroblock skip table */ | 304 /* init macroblock skip table */ |
338 CHECK_FREE(s->coded_block); | 343 CHECK_FREE(s->coded_block); |
339 CHECK_FREE(s->mbintra_table); | 344 CHECK_FREE(s->mbintra_table); |
340 CHECK_FREE(s->me_scratchpad); | 345 CHECK_FREE(s->me_scratchpad); |
341 | 346 |
342 CHECK_FREE(s->mbskip_table); | 347 CHECK_FREE(s->mbskip_table); |
348 CHECK_FREE(s->bitstream_buffer); | |
343 for(i=0;i<3;i++) { | 349 for(i=0;i<3;i++) { |
344 int j; | 350 int j; |
345 CHECK_FREE(s->last_picture_base[i]); | 351 CHECK_FREE(s->last_picture_base[i]); |
346 CHECK_FREE(s->next_picture_base[i]); | 352 CHECK_FREE(s->next_picture_base[i]); |
347 CHECK_FREE(s->aux_picture_base[i]); | 353 CHECK_FREE(s->aux_picture_base[i]); |