tsfile: fix bug in packet reception spotted by _Dweller.

This commit is contained in:
Adam Sutton 2013-10-20 10:00:46 +01:00
parent 06b042e0b3
commit a88c9dc425

View file

@ -125,7 +125,8 @@ tsfile_input_thread ( void *aux )
/* Process */
if (c >= 0) {
pcr = PTS_UNSET;
pos = mpegts_input_recv_packets(mi, mmi, tsb, c, &pcr, &tmi->mmi_tsfile_pcr_pid, "tsfile");
pos = mpegts_input_recv_packets(mi, mmi, tsb, c+pos, &pcr,
&tmi->mmi_tsfile_pcr_pid, "tsfile");
/* Delay */
if (pcr != PTS_UNSET) {