Mercurial > libavcodec.hg
diff mpegvideo.c @ 333:8aa87f1dfc52 libavcodec
divx 5.01 support
author | michaelni |
---|---|
date | Mon, 22 Apr 2002 12:45:22 +0000 |
parents | 5cc47d0ba53e |
children | c56b45669214 |
line wrap: on
line diff
--- a/mpegvideo.c Mon Apr 22 10:27:25 2002 +0000 +++ b/mpegvideo.c Mon Apr 22 12:45:22 2002 +0000 @@ -292,6 +292,11 @@ if (!s->mbintra_table) goto fail; memset(s->mbintra_table, 1, s->mb_num); + + /* divx501 bitstream reorder buffer */ + s->bitstream_buffer= av_mallocz(BITSTREAM_BUFFER_SIZE); + if (!s->bitstream_buffer) + goto fail; } /* default structure is frame */ s->picture_structure = PICT_FRAME; @@ -340,6 +345,7 @@ CHECK_FREE(s->me_scratchpad); CHECK_FREE(s->mbskip_table); + CHECK_FREE(s->bitstream_buffer); for(i=0;i<3;i++) { int j; CHECK_FREE(s->last_picture_base[i]);