Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-15 22:38:03 +0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-04 01:43:11 +0400
commit5602a464c9f9e3c0922f5cfeccaf2fa1c40b2401 (patch)
tree783511b998940d65fe61a2da3f81e46bbf34cf6d /libavformat/oggparsevorbis.c
parent737ca4482bd68d6dc52a1811f5de8e4952ad7036 (diff)
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.c1
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;