Browse Source

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.
tags/n0.11
Justin Ruggles 13 years ago
parent
commit
eed691f7d1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/oggparseflac.c

+ 1
- 0
libavformat/oggparseflac.c View File

@@ -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);


Loading…
Cancel
Save