mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avcodec/dvbsubdec: removed unnecessary null check for subtitle
In refrence to coverity defect 1224278 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
462c9ee3ac
commit
7d1898ebcc
@ -1567,7 +1567,7 @@ static int dvbsub_decode(AVCodecContext *avctx,
|
||||
}
|
||||
// Some streams do not send a display segment but if we have all the other
|
||||
// segments then we need no further data.
|
||||
if (got_segment == 15 && sub) {
|
||||
if (got_segment == 15) {
|
||||
av_log(avctx, AV_LOG_DEBUG, "Missing display_end_segment, emulating\n");
|
||||
dvbsub_display_end_segment(avctx, p, 0, sub, data_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user