[FFmpeg-cvslog] r25030 - trunk/libavformat/amr.c

mstorsjo subversion
Fri Sep 3 16:59:18 CEST 2010


Author: mstorsjo
Date: Fri Sep  3 16:59:18 2010
New Revision: 25030

Log:
Set frame_size in the amr demuxer

Modified:
   trunk/libavformat/amr.c

Modified: trunk/libavformat/amr.c
==============================================================================
--- trunk/libavformat/amr.c	Fri Sep  3 09:10:21 2010	(r25029)
+++ trunk/libavformat/amr.c	Fri Sep  3 16:59:18 2010	(r25030)
@@ -100,12 +100,14 @@ static int amr_read_header(AVFormatConte
         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;



More information about the ffmpeg-cvslog mailing list