mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avfilter/af_pan: fix leaks on error case
This commit is contained in:
parent
a4abe37fb5
commit
ffd275a7e0
@ -385,8 +385,11 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
outsamples->channels = outlink->ch_layout.nb_channels;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if ((ret = av_channel_layout_copy(&outsamples->ch_layout, &outlink->ch_layout)) < 0)
|
||||
if ((ret = av_channel_layout_copy(&outsamples->ch_layout, &outlink->ch_layout)) < 0) {
|
||||
av_frame_free(&outsamples);
|
||||
av_frame_free(&insamples);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = ff_filter_frame(outlink, outsamples);
|
||||
av_frame_free(&insamples);
|
||||
|
Loading…
Reference in New Issue
Block a user