mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 20:16:42 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user