Commit 9b92507e authored by bcoudurier's avatar bcoudurier

parse stream headers for audio streams in mkv, needed for frame size

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22925 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b1d38a6e
......@@ -1394,6 +1394,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->sample_rate = track->audio.out_samplerate;
st->codec->channels = track->audio.channels;
st->need_parsing = AVSTREAM_PARSE_HEADERS;
} else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment