1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

View File

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