summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-09 01:04:34 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-12 16:00:48 +0000
commitd5fcf9426110df2d2f5b15ad0031185b3cfd3619 (patch)
tree336442f637a44e42d83c506e39f94c2983ceca00
parent22aed77687f86b6b9efb9b0fdf4b26130a858c6d (diff)
h264_metadata: Fix clearing SEI payload in error case
-rw-r--r--libavcodec/h264_metadata_bsf.c2
1 files changed, 1 insertions, 1 deletions
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;
}