set block align and frame size for gsm in aiff
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 4 Sep 2008 22:35:05 +0000 (22:35 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 4 Sep 2008 22:35:05 +0000 (22:35 +0000)
Originally committed as revision 15203 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aiff.c

index 4115355..0eedfba 100644 (file)
@@ -141,6 +141,10 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
             codec->block_align = 1*codec->channels;
             codec->frame_size = 6;
             break;
+        case CODEC_ID_GSM:
+            codec->block_align = 33;
+            codec->frame_size = 160;
+            break;
         default:
             break;
         }