summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvbsubdec.c
diff options
context:
space:
mode:
authorAnshul Maheshwari <anshul.ffmpeg@gmail.com>2014-07-02 21:51:37 +0530
committerMichael Niedermayer <michaelni@gmx.at>2014-07-02 19:47:14 +0200
commit7d1898ebcc2fcd271ffe58bbebab7b52a2692288 (patch)
treeb5582def67b67cc393f0771e9b4c875218b7a037 /libavcodec/dvbsubdec.c
parent462c9ee3ac45cfd451046f1f8ad6a19226c14f40 (diff)
downloadffmpeg-streaming-7d1898ebcc2fcd271ffe58bbebab7b52a2692288.zip
ffmpeg-streaming-7d1898ebcc2fcd271ffe58bbebab7b52a2692288.tar.gz
avcodec/dvbsubdec: removed unnecessary null check for subtitle
In refrence to coverity defect 1224278 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r--libavcodec/dvbsubdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index e958ae1..a40da76 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -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);
}
OpenPOWER on IntegriCloud