1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avfilter/overlay_cuda: fix framesync with embedded PGS subtitle

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka 2021-02-03 01:10:11 +08:00 committed by Timo Rothenpieler
parent fbb9368226
commit 4383b9e8a3

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