mbintra_table will be memset to 1 a few lines after its allocation. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com> --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index c28d1adef7..f487864de6 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -790,7 +790,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); -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".