Commit d792613b authored by Mark Thompson's avatar Mark Thompson

h264_metadata: Fix clearing SEI payload in error case

Fixes CID 1419832, 1419835.
parent 624d4739
...@@ -372,7 +372,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out) ...@@ -372,7 +372,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
"must be \"UUID+string\".\n"); "must be \"UUID+string\".\n");
err = AVERROR(EINVAL); err = AVERROR(EINVAL);
sei_fail: sei_fail:
memset(payload, 0, sizeof(&payload)); memset(payload, 0, sizeof(*payload));
goto fail; goto fail;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment