set block align for mace3/6
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 5 Mar 2008 12:06:57 +0000 (12:06 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 5 Mar 2008 12:06:57 +0000 (12:06 +0000)
Originally committed as revision 12328 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aiff.c

index 4343e79..78ae6f4 100644 (file)
@@ -131,7 +131,11 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
             codec->frame_size = 64;
             break;
         case CODEC_ID_MACE3:
+            codec->block_align = 2*codec->channels;
+            codec->frame_size = 6;
+            break;
         case CODEC_ID_MACE6:
+            codec->block_align = 1*codec->channels;
             codec->frame_size = 6;
             break;
         default: