Mercurial > libavcodec.hg
changeset 611:3214d3f4519e libavcodec
error concealment needs the mbintra_table so it should allways be allocated
author | michaelni |
---|---|
date | Sat, 24 Aug 2002 13:24:43 +0000 |
parents | 015b33f3e750 |
children | c0005de2be59 |
files | mpegvideo.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Thu Aug 22 23:29:45 2002 +0000 +++ b/mpegvideo.c Sat Aug 24 13:24:43 2002 +0000 @@ -262,10 +262,6 @@ /* cbp values */ CHECKED_ALLOCZ(s->coded_block, y_size); - - /* which mb is a intra block */ - CHECKED_ALLOCZ(s->mbintra_table, s->mb_num); - memset(s->mbintra_table, 1, s->mb_num); /* divx501 bitstream reorder buffer */ CHECKED_ALLOCZ(s->bitstream_buffer, BITSTREAM_BUFFER_SIZE); @@ -276,6 +272,10 @@ } CHECKED_ALLOCZ(s->qscale_table , s->mb_num * sizeof(UINT8)) + /* which mb is a intra block */ + CHECKED_ALLOCZ(s->mbintra_table, s->mb_num); + memset(s->mbintra_table, 1, s->mb_num); + /* default structure is frame */ s->picture_structure = PICT_FRAME;