mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
decode: avoid leaks on failure in ff_get_buffer()
If the get_buffer() call fails, the frame might have some side data already set. Make sure it gets freed. CC: libav-stable@libav.org
This commit is contained in:
parent
70946e6059
commit
de77671438
@ -1069,6 +1069,9 @@ end:
|
||||
frame->height = avctx->height;
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
av_frame_unref(frame);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user