avfilter/overlay_cuda: fix framesync with embedded PGS subtitle
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
committed by
Timo Rothenpieler
parent
3d79b9357d
commit
5f2018c490
@ -157,9 +157,12 @@ static int overlay_cuda_blend(FFFrameSync *fs)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!input_main || !input_overlay)
|
if (!input_main)
|
||||||
return AVERROR_BUG;
|
return AVERROR_BUG;
|
||||||
|
|
||||||
|
if (!input_overlay)
|
||||||
|
return ff_filter_frame(outlink, input_main);
|
||||||
|
|
||||||
ret = av_frame_make_writable(input_main);
|
ret = av_frame_make_writable(input_main);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_frame_free(&input_main);
|
av_frame_free(&input_main);
|
||||||
|
Reference in New Issue
Block a user