mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
avcodec/mpegvideo: Don't zero-initialize unnecessarily
mbintra_table will be memset to 1 a few lines after its allocation. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
3526f3856a
commit
0d61a1cfad
@ -787,7 +787,7 @@ static int init_context_frame(MpegEncContext *s)
|
||||
}
|
||||
|
||||
/* which mb is an intra block, init macroblock skip table */
|
||||
if (!FF_ALLOCZ_TYPED_ARRAY(s->mbintra_table, mb_array_size) ||
|
||||
if (!FF_ALLOC_TYPED_ARRAY(s->mbintra_table, mb_array_size) ||
|
||||
// Note the + 1 is for a quicker MPEG-4 slice_end detection
|
||||
!FF_ALLOCZ_TYPED_ARRAY(s->mbskip_table, mb_array_size + 2))
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user