[FFmpeg-cvslog] avcodec/dvbsubdec: removed unnecessary null check for subtitle

Anshul Maheshwari git at videolan.org
Wed Jul 2 19:53:44 CEST 2014


ffmpeg | branch: master | Anshul Maheshwari <anshul.ffmpeg at gmail.com> | Wed Jul  2 22:09:37 2014 +0530| [7d1898ebcc2fcd271ffe58bbebab7b52a2692288] | committer: Michael Niedermayer

avcodec/dvbsubdec: removed unnecessary null check for subtitle

In refrence to coverity defect 1224278

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d1898ebcc2fcd271ffe58bbebab7b52a2692288
---

 libavcodec/dvbsubdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list