diff options
author | nyanmisaka <nst799610810@gmail.com> | 2021-02-03 01:10:11 +0800 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-03-25 04:31:42 +0100 |
commit | a4e518c321f8afedaecd817739fabe17a7a7b609 (patch) | |
tree | 933b3496b0315ceeb2408a71a2ab05a5dfd52f05 /libavfilter | |
parent | 0c5098d1a254cacec87ce2ce8c9a3173ec35dc09 (diff) |
avfilter/overlay_cuda: fix framesync with embedded PGS subtitle
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_overlay_cuda.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |