Mercurial > libavformat.hg
diff mpegts.c @ 743:af4e24d6310c libavformat
switch to native time bases
| author | michael |
|---|---|
| date | Sat, 30 Apr 2005 21:43:59 +0000 |
| parents | 29a19aec26b2 |
| children | 5f07cc45fd50 |
line wrap: on
line diff
--- a/mpegts.c Tue Apr 26 21:46:46 2005 +0000 +++ b/mpegts.c Sat Apr 30 21:43:59 2005 +0000 @@ -1208,7 +1208,7 @@ ts->cur_pcr = pcrs[0] - ts->pcr_incr * packet_count[0]; s->bit_rate = (TS_PACKET_SIZE * 8) * 27e6 / ts->pcr_incr; st->codec.bit_rate = s->bit_rate; - st->start_time = ts->cur_pcr * 1000000.0 / 27.0e6; + st->start_time = ts->cur_pcr; #if 0 printf("start=%0.3f pcr=%0.3f incr=%d\n", st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr);
