Recently introduced.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -875,8 +875,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) · 874 unmodified lines | ||
| 875 | 875 | return ff_filter_frame(outlink, buf); |
| 876 | 876 | |
| 877 | 877 | ret = av_channel_layout_copy(&s->ch_layout, &inlink->ch_layout); |
| 878 | − if (ret < 0) | |
| 878 | + if (ret < 0) { | |
| 879 | + av_frame_free(&buf); | |
| 879 | 880 | return ret; |
| 881 | + } | |
| 880 | 882 | if (strcmp(s->ch_layout_str, "all")) |
| 881 | 883 | av_channel_layout_from_string(&s->ch_layout, |
| 882 | 884 | s->ch_layout_str); |