Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -157,9 +157,12 @@ static int overlay_cuda_blend(FFFrameSync *fs) · 156 unmodified lines | |||
| 157 | if (ret < 0) | 157 | if (ret < 0) |
| 158 | return ret; | 158 | return ret; |
| 159 | 159 | ||
| 160 | if (!input_main || !input_overlay) | 160 | if (!input_main) |
| 161 | return AVERROR_BUG; | 161 | return AVERROR_BUG; |
| 162 | 162 | ||
| 163 | if (!input_overlay) | ||
| 164 | return ff_filter_frame(outlink, input_main); | ||
| 165 | |||
| 163 | ret = av_frame_make_writable(input_main); | 166 | ret = av_frame_make_writable(input_main); |
| 164 | if (ret < 0) { | 167 | if (ret < 0) { |
| 165 | av_frame_free(&input_main); | 168 | av_frame_free(&input_main); |