1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 12:22:22 +00:00

demux: eliminate redundant check

pkt can't be NULL since it's initialized from ds->head, which is checked
at the beginning.
This commit is contained in:
shdown 2014-08-30 13:11:09 +04:00 committed by wm4
parent 5bc3b7c368
commit f49099b94d

View File

@ -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;