[FFmpeg-devel] [PATCH] avcodec/libvpxenc, cosmetics: prefer sizeof(var)
James Zern
jzern at google.com
Sat Jan 4 03:16:12 EET 2020
Signed-off-by: James Zern <jzern at google.com>
---
libavcodec/libvpxenc.c | 3 +--
1 file changed, 1 insertion(+), 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,
--
2.24.1.735.g03f4e72817-goog
More information about the ffmpeg-devel
mailing list