]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/overlay_cuda: fix framesync with embedded PGS subtitle
authornyanmisaka <nst799610810@gmail.com>
Tue, 2 Feb 2021 17:10:11 +0000 (01:10 +0800)
committerTimo Rothenpieler <timo@rothenpieler.org>
Thu, 25 Mar 2021 03:31:42 +0000 (04:31 +0100)
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
libavfilter/vf_overlay_cuda.c

index 2f0f860e504cc74bd0d1f39cfff31170dd45597b..f6ee43e9295af6d751f5016ff37cfec96dda8731 100644 (file)
@@ -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);