[FFmpeg-cvslog] r16212 - trunk/libavformat/mov.c

bcoudurier subversion
Thu Dec 18 10:17:19 CET 2008


Author: bcoudurier
Date: Thu Dec 18 10:17:19 2008
New Revision: 16212

Log:
set alac channels from extradata, fix alac mono in m4a

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Thu Dec 18 10:17:19 2008
@@ -1033,8 +1033,10 @@ static int mov_read_stsd(MOVContext *c, 
         st->codec->block_align = sc->bytes_per_frame;
         break;
     case CODEC_ID_ALAC:
-        if (st->codec->extradata_size == 36)
+        if (st->codec->extradata_size == 36) {
             st->codec->frame_size = AV_RB32((st->codec->extradata+12));
+            st->codec->channels   = AV_RB8  (st->codec->extradata+21);
+        }
         break;
     default:
         break;




More information about the ffmpeg-cvslog mailing list