kopia lustrzana https://github.com/kierank/libmpegts
Make output PCR list not wrap around.
rodzic
fa9f763364
commit
f4f1883326
|
@ -1349,7 +1349,7 @@ int increase_pcr( ts_writer_t *w, int num_packets, int imaginary )
|
|||
pcr = (int64_t)((8.0 * w->packets_written * TS_PACKET_SIZE / w->ts_muxrate) * TS_CLOCK + 0.5);
|
||||
pcr += TS_START * TS_CLOCK;
|
||||
|
||||
w->pcr_list[w->num_pcrs++] = pcr % mod;
|
||||
w->pcr_list[w->num_pcrs++] = pcr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -650,6 +650,7 @@ typedef struct
|
|||
* libmpegts buffers one frame so the last set of packets can be output by setting num_frames = 0.
|
||||
*
|
||||
* pcr_list contains an array of pcr values, one for each output packet. The array length is len/188.
|
||||
* NOTE: This PCR list does not wrap around
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue