Mercurial > libavformat.hg
diff mpegts.c @ 462:b69898ffc92a libavformat
move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
author | michael |
---|---|
date | Fri, 21 May 2004 20:43:21 +0000 |
parents | d42038d418a0 |
children | 696f41bc8784 |
line wrap: on
line diff
--- a/mpegts.c Thu May 20 16:00:22 2004 +0000 +++ b/mpegts.c Fri May 21 20:43:21 2004 +0000 @@ -768,6 +768,7 @@ } st = av_new_stream(pes->stream, pes->pid); if (st) { + av_set_pts_info(st, 60, 1, 27000000); st->priv_data = pes; st->codec.codec_type = codec_type; st->codec.codec_id = codec_id; @@ -1165,14 +1166,12 @@ uint8_t packet[TS_PACKET_SIZE]; /* only read packets */ - - s->pts_num = 1; - s->pts_den = 27000000; do_pcr: st = av_new_stream(s, 0); if (!st) goto fail; + av_set_pts_info(st, 60, 1, 27000000); st->codec.codec_type = CODEC_TYPE_DATA; st->codec.codec_id = CODEC_ID_MPEG2TS;