diff mbox series

[FFmpeg-devel] avfilter/overlay_cuda: fix framesync with embedded PGS subtitle

Message ID 20210202171011.46446-1-nst799610810@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel] avfilter/overlay_cuda: fix framesync with embedded PGS subtitle | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

nyanmisaka Feb. 2, 2021, 5:10 p.m. UTC
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
---
 libavfilter/vf_overlay_cuda.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Timo Rothenpieler March 25, 2021, 3:41 a.m. UTC | #1
applied
diff mbox series

Patch

diff --git a/libavfilter/vf_overlay_cuda.c b/libavfilter/vf_overlay_cuda.c
index 2f0f860e50..f6ee43e929 100644
--- a/libavfilter/vf_overlay_cuda.c
+++ b/libavfilter/vf_overlay_cuda.c
@@ -157,9 +157,12 @@  static int overlay_cuda_blend(FFFrameSync *fs)
     if (ret < 0)
         return ret;
 
-    if (!input_main || !input_overlay)
+    if (!input_main)
         return AVERROR_BUG;
 
+    if (!input_overlay)
+        return ff_filter_frame(outlink, input_main);
+
     ret = av_frame_make_writable(input_main);
     if (ret < 0) {
         av_frame_free(&input_main);