[FFmpeg-cvslog] h264_metadata: Fix clearing SEI payload in error case

Mark Thompson git at videolan.org
Wed Oct 18 22:08:28 EEST 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Wed Oct 18 19:34:53 2017 +0100| [d792613badfe7e7ca3552533e691c5015991a98a] | committer: Mark Thompson

h264_metadata: Fix clearing SEI payload in error case

Fixes CID 1419832, 1419835.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d792613badfe7e7ca3552533e691c5015991a98a
---

 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;
         }
 



More information about the ffmpeg-cvslog mailing list