demux: avformat: fix incorrect PCR
commitdd26ae7ed9ba9772fa1e924593a24d56afce733d
authorZhao Zhili <quinkblack@foxmail.com>
Thu, 31 Aug 2017 06:47:13 +0000 (31 14:47 +0800)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 Sep 2017 10:59:40 +0000 (7 12:59 +0200)
treeebaa805de1c8c728a2f76fe8dba2055b92fe3502
parent98e70d033eb5a55fe0070b4ca74896635920012f
demux: avformat: fix incorrect PCR

If DTS of the first frame is invalid, then p_sys->tk_pcr[i] is invalid,
and the previous code will set PCR to INT64_MAX.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/demux.c