summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshdown <shdownnine@gmail.com>2014-08-30 13:11:09 +0400
committerwm4 <wm4@nowhere>2014-08-30 15:15:37 +0200
commitf49099b94d1b73a8b74da64d14ebd6f0e622f06b (patch)
treea752d9dd010b22a1d667d382ef799a2f377cf035
parent5bc3b7c3687e7e3f9a4b5c9053a2618a33712f4a (diff)
downloadmpv-f49099b94d1b73a8b74da64d14ebd6f0e622f06b.tar.bz2
mpv-f49099b94d1b73a8b74da64d14ebd6f0e622f06b.tar.xz
demux: eliminate redundant check
pkt can't be NULL since it's initialized from ds->head, which is checked at the beginning.
-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;