summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux.c2
1 files changed, 1 insertions, 1 deletions
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;