cbs_h264: Fix memory leak in error case

Fixes CID 1419834.
This commit is contained in:
Mark Thompson 2017-10-18 19:37:30 +01:00
parent d792613bad
commit 41272e112b

View File

@ -824,6 +824,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx,
err = cbs_h264_read_sei(ctx, &gbc, sei);
if (err < 0) {
cbs_h264_free_sei(sei);
av_free(sei);
return err;
}