h264_metadata: Fix clearing SEI payload in error case

Fixes CID 1419832, 1419835.
This commit is contained in:
Mark Thompson 2017-10-18 19:34:53 +01:00
parent 624d4739db
commit d792613bad

View File

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