From d5fcf9426110df2d2f5b15ad0031185b3cfd3619 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Thu, 9 Nov 2017 01:04:34 +0000 Subject: [PATCH] h264_metadata: Fix clearing SEI payload in error case --- libavcodec/h264_metadata_bsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 1afa5014b3..ac0b9823b9 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h264_metadata_bsf.c @@ -368,7 +368,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out) "must be \"UUID+string\".\n"); err = AVERROR(EINVAL); sei_fail: - memset(payload, 0, sizeof(&payload)); + memset(payload, 0, sizeof(*payload)); goto fail; }