avcodec/libvpxenc,cosmetics: prefer sizeof(var)
authorJames Zern <jzern@google.com>
Fri, 3 Jan 2020 23:01:43 +0000 (15:01 -0800)
committerJames Zern <jzern@google.com>
Tue, 7 Jan 2020 06:35:38 +0000 (22:35 -0800)
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
libavcodec/libvpxenc.c

index 3f659b4..0b8a070 100644 (file)
@@ -1041,8 +1041,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out)
                 if (size < 0)
                     return size;
             } else {
-                struct FrameListData *cx_frame =
-                    av_malloc(sizeof(struct FrameListData));
+                struct FrameListData *cx_frame = av_malloc(sizeof(*cx_frame));
 
                 if (!cx_frame) {
                     av_log(avctx, AV_LOG_ERROR,