Browse Source

error concealment needs the mbintra_table so it should allways be allocated

Originally committed as revision 861 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 23 years ago
parent
commit
7806197db2
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/mpegvideo.c

+ 4
- 4
libavcodec/mpegvideo.c View File

@@ -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;


Loading…
Cancel
Save