From d792613badfe7e7ca3552533e691c5015991a98a Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Wed, 18 Oct 2017 19:34:53 +0100 Subject: [PATCH] h264_metadata: Fix clearing SEI payload in error case Fixes CID 1419832, 1419835. --- 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 496f7f00fe..73e73e96e4 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h264_metadata_bsf.c @@ -372,7 +372,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; }