diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-15 13:38:03 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-03 16:43:11 -0500 |
commit | 5602a464c9f9e3c0922f5cfeccaf2fa1c40b2401 (patch) | |
tree | 783511b998940d65fe61a2da3f81e46bbf34cf6d /libavformat/oggparsevorbis.c | |
parent | 737ca4482bd68d6dc52a1811f5de8e4952ad7036 (diff) | |
download | ffmpeg-5602a464c9f9e3c0922f5cfeccaf2fa1c40b2401.tar.gz |
avcodec: add a Vorbis parser to get packet duration
This also allows for removing some of the Vorbis-related hacks.
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index ba9b348456..b9d9f575e0 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -251,6 +251,7 @@ vorbis_header (AVFormatContext * s, int idx) st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_VORBIS; + st->need_parsing = AVSTREAM_PARSE_HEADERS; if (srate > 0) { st->codec->sample_rate = srate; |