Commit 7d1898eb authored by Anshul Maheshwari's avatar Anshul Maheshwari Committed by Michael Niedermayer

avcodec/dvbsubdec: removed unnecessary null check for subtitle

In refrence to coverity defect 1224278
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 462c9ee3
...@@ -1567,7 +1567,7 @@ static int dvbsub_decode(AVCodecContext *avctx, ...@@ -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 // Some streams do not send a display segment but if we have all the other
// segments then we need no further data. // 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"); av_log(avctx, AV_LOG_DEBUG, "Missing display_end_segment, emulating\n");
dvbsub_display_end_segment(avctx, p, 0, sub, data_size); dvbsub_display_end_segment(avctx, p, 0, sub, data_size);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment