summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-27 21:16:08 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-31 22:12:01 +0100
commit0d61a1cfad23ceac8104d0c00f98399de9d91069 (patch)
treeb71ac3417977a1a290fd347d58ef55326be9b074 /libavcodec/mpegvideo.c
parent3526f3856abc7586c98ea98cad04abf7696e89e7 (diff)
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>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index f92792ae98..60ed716865 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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);