Unified · Split
| @@ -385,8 +385,11 @@ FF_DISABLE_DEPRECATION_WARNINGS · 384 unmodified lines | ||
| 385 | 385 | outsamples->channels = outlink->ch_layout.nb_channels; |
| 386 | 386 | FF_ENABLE_DEPRECATION_WARNINGS |
| 387 | 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 | 391 | return ret; |
| 392 | + } | |
| 390 | 393 | |
| 391 | 394 | ret = ff_filter_frame(outlink, outsamples); |
| 392 | 395 | av_frame_free(&insamples); |