Unified · Split
| @@ -385,8 +385,11 @@ FF_DISABLE_DEPRECATION_WARNINGS · 384 unmodified lines | |||
| 385 | outsamples->channels = outlink->ch_layout.nb_channels; | 385 | outsamples->channels = outlink->ch_layout.nb_channels; |
| 386 | FF_ENABLE_DEPRECATION_WARNINGS | 386 | FF_ENABLE_DEPRECATION_WARNINGS |
| 387 | #endif | 387 | #endif |
| 388 | if ((ret = av_channel_layout_copy(&outsamples->ch_layout, &outlink->ch_layout)) < 0) | 388 | if ((ret = av_channel_layout_copy(&outsamples->ch_layout, &outlink->ch_layout)) < 0) { |
| 389 | av_frame_free(&outsamples); | ||
| 390 | av_frame_free(&insamples); | ||
| 389 | return ret; | 391 | return ret; |
| 392 | } | ||
| 390 | 393 | ||
| 391 | ret = ff_filter_frame(outlink, outsamples); | 394 | ret = ff_filter_frame(outlink, outsamples); |
| 392 | av_frame_free(&insamples); | 395 | av_frame_free(&insamples); |