Browse Source

avcodec/dvbsubdec: removed unnecessary null check for subtitle

In refrence to coverity defect 1224278

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Anshul Maheshwari Michael Niedermayer 11 years ago
parent
commit
7d1898ebcc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dvbsubdec.c

+ 1
- 1
libavcodec/dvbsubdec.c 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);
}


Loading…
Cancel
Save