[libav-devel] [PATCH 09/14] h264_metadata: Fix clearing SEI payload in error case

Mark Thompson sw at jkqxz.net
Thu Nov 9 02:07:51 CET 2017


---
 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 33757cfb1..2b579e9d3 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;
         }
 
-- 
2.11.0



More information about the libav-devel mailing list