From 8bb90c539456fa588499fc8b03fbcc07b5317443 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 3 Sep 2010 14:59:18 +0000 Subject: Set frame_size in the amr demuxer Originally committed as revision 25030 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/amr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/amr.c') diff --git a/libavformat/amr.c b/libavformat/amr.c index d16b4c03cd..f78aacc216 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -100,12 +100,14 @@ static int amr_read_header(AVFormatContext *s, st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b'); st->codec->codec_id = CODEC_ID_AMR_WB; st->codec->sample_rate = 16000; + st->codec->frame_size = 320; } else { st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r'); st->codec->codec_id = CODEC_ID_AMR_NB; st->codec->sample_rate = 8000; + st->codec->frame_size = 160; } st->codec->channels = 1; st->codec->codec_type = AVMEDIA_TYPE_AUDIO; -- cgit v1.2.3