Fixes Coverity issue #1473500.
Unified · Split
| @@ -425,6 +425,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 424 unmodified lines | |||
| 425 | out = ff_get_video_buffer(outlink, aligned_w, aligned_h); | 425 | out = ff_get_video_buffer(outlink, aligned_w, aligned_h); |
| 426 | if (!out) { | 426 | if (!out) { |
| 427 | av_frame_free(&in); | 427 | av_frame_free(&in); |
| 428 | if (qp_table != uspp->non_b_qp_table) | ||
| 429 | av_free(qp_table); | ||
| 428 | return AVERROR(ENOMEM); | 430 | return AVERROR(ENOMEM); |
| 429 | } | 431 | } |
| 430 | av_frame_copy_props(out, in); | 432 | av_frame_copy_props(out, in); |