set alac frame size from extradata
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 24 Apr 2008 13:58:22 +0000 (13:58 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 24 Apr 2008 13:58:22 +0000 (13:58 +0000)
Originally committed as revision 12937 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index c4fd248..91f27c4 100644 (file)
@@ -936,6 +936,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
     case CODEC_ID_ADPCM_IMA_WAV:
         st->codec->block_align = sc->bytes_per_frame;
         break;
+    case CODEC_ID_ALAC:
+        if (st->codec->extradata_size == 36)
+            st->codec->frame_size = AV_RB32((st->codec->extradata+12));
+        break;
     default:
         break;
     }