diff options
author | Anshul Maheshwari <anshul.ffmpeg@gmail.com> | 2014-07-02 21:51:37 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-02 19:47:14 +0200 |
commit | 7d1898ebcc2fcd271ffe58bbebab7b52a2692288 (patch) | |
tree | b5582def67b67cc393f0771e9b4c875218b7a037 /libavcodec/dvbsubdec.c | |
parent | 462c9ee3ac45cfd451046f1f8ad6a19226c14f40 (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index e958ae1ea7..a40da768de 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); } |