diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-05-18 12:12:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-18 15:12:34 +0200 |
commit | 194be1f43ea391eb986732707435176e579265aa (patch) | |
tree | 2045d50660f7e045fde6cda7a2ed8213c24f5aab /libavformat/oggenc.c | |
parent | d754ed41727b1fcbab335b510248a9758a73320c (diff) | |
download | ffmpeg-194be1f43ea391eb986732707435176e579265aa.tar.gz |
lavf: switch to AVStream.time_base as the hint for the muxer timebase
Previously, AVStream.codec.time_base was used for that purpose, which
was quite confusing for the callers. This change also opens the path for
removing AVStream.codec.
The change in the lavf-mkv test is due to the native timebase (1/1000)
being used instead of the default one (1/90000), so the packets are now
sent to the crc muxer in the same order in which they are demuxed
(previously some of them got reordered because of inexact timestamp
conversion).
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r-- | libavformat/oggenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index d148f5b7da..19c77595f4 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -428,8 +428,7 @@ static int ogg_write_header(AVFormatContext *s) avpriv_set_pts_info(st, 64, 1, 48000); else avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); - else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) - avpriv_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den); + if (st->codec->codec_id != AV_CODEC_ID_VORBIS && st->codec->codec_id != AV_CODEC_ID_THEORA && st->codec->codec_id != AV_CODEC_ID_SPEEX && |