mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffmpeg: do not pass possibly undefined subtitles to sub2video_update
It should not matter for real-life usage, it is just cleaner this way. Signed-off-by: Marton Balint <cus@passwd.hu> Reviewed-by: Nicolas George <george@nsup.org>
This commit is contained in:
parent
58010e57b2
commit
3e396ca8ed
5
ffmpeg.c
5
ffmpeg.c
@ -1822,9 +1822,12 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output)
|
||||
FFSWAP(AVSubtitle, subtitle, ist->prev_sub.subtitle);
|
||||
}
|
||||
|
||||
if (!*got_output)
|
||||
return ret;
|
||||
|
||||
sub2video_update(ist, &subtitle);
|
||||
|
||||
if (!*got_output || !subtitle.num_rects)
|
||||
if (!subtitle.num_rects)
|
||||
return ret;
|
||||
|
||||
for (i = 0; i < nb_output_streams; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user