[SCM] libav/experimental: In mov demuxer, read alac sample from extradata, fix #2406

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:19:48 UTC 2013


The following commit has been merged in the experimental branch:
commit c6f1e29a15cada5e1f7247f2b778cc360bb7b5c1
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Tue Dec 7 01:38:26 2010 +0000

    In mov demuxer, read alac sample from extradata, fix #2406
    
    Originally committed as revision 25901 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mov.c b/libavformat/mov.c
index eeeba40..9788e41 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1230,6 +1230,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, ByteIOContext *pb, int entries)
         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);
+            st->codec->sample_rate = AV_RB32(st->codec->extradata+32);
         }
         break;
     default:

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list