diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-04-20 21:19:27 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-04-20 21:19:27 +0000 |
commit | dc1c26dc8e0a3bdeac78a457e5114deae9dacb58 (patch) | |
tree | d912fa37e4c3d2e2350c6f71375c0dbba063b511 /libavformat | |
parent | e595346486260e72fce8b5e3f5938688fa4dcb0f (diff) | |
download | ffmpeg-dc1c26dc8e0a3bdeac78a457e5114deae9dacb58.tar.gz |
parse stream headers for audio streams in mkv, needed for frame size
Originally committed as revision 22925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 314078b9f6..28355a89de 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; } |