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:
Anshul Maheshwari 2014-07-02 21:51:37 +05:30 committed by Michael Niedermayer
parent 462c9ee3ac
commit 7d1898ebcc

View File

@ -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);
}