diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-01-31 20:08:56 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-02-05 09:55:53 +0100 |
commit | 5603df39df36d9de713732da06fe183b188ec963 (patch) | |
tree | a3db37bac78255a929e1bab523e59cd0c6c7c7fd /libavformat/oggparsevorbis.c | |
parent | d947bce1fcd0115d1ff286965321f1434d62b45a (diff) | |
download | ffmpeg-5603df39df36d9de713732da06fe183b188ec963.tar.gz |
Always use av_set_pts_info to set the stream time base.
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 34ae2fc4f0..b915fffb03 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -252,8 +252,7 @@ vorbis_header (AVFormatContext * s, int idx) if (srate > 0) { st->codec->sample_rate = srate; - st->time_base.num = 1; - st->time_base.den = srate; + av_set_pts_info(st, 64, 1, srate); } } else if (os->buf[os->pstart] == 3) { if (os->psize > 8 && |