From: Justin Ruggles Date: Tue, 27 Mar 2012 18:08:27 +0000 (-0400) Subject: oggdec: calculate correct timestamps in Ogg/FLAC X-Git-Tag: v9_beta1~2194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eed691f7d1cacf2c0a44a86a0f034a9524c6edfc;p=platform%2Fupstream%2Flibav.git 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. --- diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index b1d18ed12..229cdcb9f 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);