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

Mark Thompson git at videolan.org
Thu Nov 16 02:10:42 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Thu Nov  9 01:04:34 2017 +0000| [d5fcf9426110df2d2f5b15ad0031185b3cfd3619] | committer: Mark Thompson

h264_metadata: Fix clearing SEI payload in error case

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

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



More information about the ffmpeg-cvslog mailing list