mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 11:39:49 +00:00
avfilter/overlay_cuda: fix framesync with embedded PGS subtitle
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
3d79b9357d
commit
5f2018c490
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user