diff amr.c @ 6456:8743935975f2 libavformat

Set frame_size in the amr demuxer
author mstorsjo
date Fri, 03 Sep 2010 14:59:18 +0000
parents 536e5527c1e0
children
line wrap: on
line diff
--- 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;