aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-08-24 13:24:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-08-24 13:24:43 +0000
commit7806197db2ffb9024d0550ab02b28fe9963e8d4b (patch)
treea25eef43d3c60196393998aad5971975e3584849
parentb77eec85b36ab736c2d5ea38df9d502d7a46b1cc (diff)
downloadffmpeg-7806197db2ffb9024d0550ab02b28fe9963e8d4b.tar.gz
error concealment needs the mbintra_table so it should allways be allocated
Originally committed as revision 861 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 9352b96303..04b4e394d0 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -262,10 +262,6 @@ int MPV_common_init(MpegEncContext *s)
/* 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 @@ int MPV_common_init(MpegEncContext *s)
}
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;