From f49099b94d1b73a8b74da64d14ebd6f0e622f06b Mon Sep 17 00:00:00 2001 From: shdown Date: Sat, 30 Aug 2014 13:11:09 +0400 Subject: demux: eliminate redundant check pkt can't be NULL since it's initialized from ds->head, which is checked at the beginning. --- demux/demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux.c b/demux/demux.c index 6b4f25be51..b139dbc922 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -500,7 +500,7 @@ static struct demux_packet *dequeue_packet(struct demux_stream *ds) ds->base_ts = ts; // This implies this function is actually called from "the" user thread. - if (pkt && pkt->pos >= 0) + if (pkt->pos >= 0) ds->in->d_user->filepos = pkt->pos; return pkt; -- cgit v1.2.3