From b3739e33fa04a9292dc6584bd2f31460aa53d478 Mon Sep 17 00:00:00 2001
From: Alex Pokotilo <[email protected]>
Date: Fri, 21 Aug 2020 09:14:37 +0000
Subject: [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not
available. now filter fails if secondary frame is not available due to e.g secondary source delay.
---
libavfilter/vf_overlay_cuda.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_overlay_cuda.c b/libavfilter/vf_overlay_cuda.c
index 2f0f860e50..355cb39019 100644
--- a/libavfilter/vf_overlay_cuda.c
+++ b/libavfilter/vf_overlay_cuda.c
@@ -157,8 +157,8 @@ static int overlay_cuda_blend(FFFrameSync *fs)
if (ret < 0)
return ret;
- if (!input_main || !input_overlay)
- return AVERROR_BUG;
+ if (!input_overlay)
+ return ff_filter_frame(outlink, input_main);
ret = av_frame_make_writable(input_main);
if (ret < 0) {
--
2.25.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".