[FFmpeg-cvslog] oggdec: calculate correct timestamps in Ogg/FLAC

Justin Ruggles git at videolan.org
Thu Mar 29 04:32:33 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Mar 27 14:08:27 2012 -0400| [eed691f7d1cacf2c0a44a86a0f034a9524c6edfc] | committer: Justin Ruggles

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eed691f7d1cacf2c0a44a86a0f034a9524c6edfc
---

 libavformat/oggparseflac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c
index b1d18ed..229cdcb 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);



More information about the ffmpeg-cvslog mailing list