changeset 4122:30262468fff4 libavformat

set alac channels from extradata, fix alac mono in m4a
author bcoudurier
date Thu, 18 Dec 2008 09:17:19 +0000
parents 55e94f2a8ac1
children e536841c1aeb
files mov.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Thu Dec 18 01:28:29 2008 +0000
+++ b/mov.c	Thu Dec 18 09:17:19 2008 +0000
@@ -1033,8 +1033,10 @@
         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;