Commit 9c52d36a authored by michaelni's avatar michaelni

error concealment needs the mbintra_table so it should allways be allocated


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@861 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e3bfb627
......@@ -263,10 +263,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment