changeset 6456:8743935975f2 libavformat

Set frame_size in the amr demuxer
author mstorsjo
date Fri, 03 Sep 2010 14:59:18 +0000
parents 3f50c7effad1
children 2e3e76e8ada4
files amr.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;