diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-27 22:08:27 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-28 00:11:06 +0400 |
commit | eed691f7d1cacf2c0a44a86a0f034a9524c6edfc (patch) | |
tree | 449960c045623c1224c7f1b00db7f43665512050 /libavformat/oggparseflac.c | |
parent | 55abaa58e5ede59d497e1ab89d5fe0950d1c6ecf (diff) |
oggdec: calculate correct timestamps in Ogg/FLAC
We need to parse the individual packet durations when there is more than one
packet in a page.
Diffstat (limited to 'libavformat/oggparseflac.c')
-rw-r--r-- | libavformat/oggparseflac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index b1d18ed12d..229cdcb9fa 100644 --- a/libavformat/oggparseflac.c +++ b/libavformat/oggparseflac.c @@ -60,6 +60,7 @@ flac_header (AVFormatContext * s, int idx) st->codec->codec_type = AVMEDIA_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_FLAC; + st->need_parsing = AVSTREAM_PARSE_HEADERS; st->codec->extradata = av_malloc(FLAC_STREAMINFO_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); |