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

nyanmisaka git at videolan.org
Thu Mar 25 05:40:30 EET 2021


ffmpeg | branch: release/4.4 | nyanmisaka <nst799610810 at gmail.com> | Wed Feb  3 01:10:11 2021 +0800| [5f2018c4901a1ff86ebfd021a4ab38a3f4a6d0cb] | committer: Timo Rothenpieler

avfilter/overlay_cuda: fix framesync with embedded PGS subtitle

Signed-off-by: nyanmisaka <nst799610810 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f2018c4901a1ff86ebfd021a4ab38a3f4a6d0cb
---

 libavfilter/vf_overlay_cuda.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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);



More information about the ffmpeg-cvslog mailing list