diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0cb3271d442d72ed88c3aa49b34c362274b1b270..14be96ecd71cbf39ac406ba1731e99875499c833 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1900,7 +1900,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return AVERROR(ENOMEM);
 
     sc->stsd_count = entries;
-    sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(sc->extradata_size));
+    sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(*sc->extradata_size));
     if (!sc->extradata_size)
         return AVERROR(ENOMEM);