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