From dc1c26dc8e0a3bdeac78a457e5114deae9dacb58 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 20 Apr 2010 21:19:27 +0000 Subject: [PATCH] parse stream headers for audio streams in mkv, needed for frame size Originally committed as revision 22925 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskadec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 314078b..28355a8 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; } -- 2.7.4