# HG changeset patch # User mstorsjo # Date 1283525958 0 # Node ID 8743935975f2b84ce212b513956ef5d2ebe01603 # Parent 3f50c7effad1a9feaa314ac10aff5f34c0e809eb Set frame_size in the amr demuxer diff -r 3f50c7effad1 -r 8743935975f2 amr.c --- a/amr.c Fri Sep 03 07:10:21 2010 +0000 +++ b/amr.c Fri Sep 03 14:59:18 2010 +0000 @@ -100,12 +100,14 @@ 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;