diff options
author | James Zern <jzern@google.com> | 2020-01-03 15:01:43 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2020-01-06 22:35:38 -0800 |
commit | 742221d33917797402cd970f4f335539b38fe59c (patch) | |
tree | 25c58271d0defc8f1740e63406603d01269bddd8 /libavcodec | |
parent | 06f6857b54a7fbbd087b0803f75bed44abed50d9 (diff) | |
download | ffmpeg-742221d33917797402cd970f4f335539b38fe59c.tar.gz |
avcodec/libvpxenc,cosmetics: prefer sizeof(var)
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvpxenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 3f659b4b67..0b8a070304 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -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, |