h264_metadata: Fix clearing SEI payload in error case
authorMark Thompson <sw@jkqxz.net>
Thu, 9 Nov 2017 01:04:34 +0000 (01:04 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 12 Nov 2017 16:00:48 +0000 (16:00 +0000)
libavcodec/h264_metadata_bsf.c

index 1afa501..ac0b982 100644 (file)
@@ -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;
         }