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 | return ff_filter_frame(outlink, buf); | 875 | return ff_filter_frame(outlink, buf); |
| 876 | 876 | ||
| 877 | ret = av_channel_layout_copy(&s->ch_layout, &inlink->ch_layout); | 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 | return ret; | 880 | return ret; |
| 881 | } | ||
| 880 | if (strcmp(s->ch_layout_str, "all")) | 882 | if (strcmp(s->ch_layout_str, "all")) |
| 881 | av_channel_layout_from_string(&s->ch_layout, | 883 | av_channel_layout_from_string(&s->ch_layout, |
| 882 | s->ch_layout_str); | 884 | s->ch_layout_str); |