cbs_h2645: Fix memory leak on when reading SEI fails

This commit is contained in:
Mark Thompson 2017-11-09 01:04:30 +00:00
parent 476d301316
commit 22aed77687
1 changed files with 1 additions and 0 deletions

View File

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