You've already forked FFmpeg
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user