aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-12-07 01:38:26 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-12-07 01:38:26 +0000
commitc6f1e29a15cada5e1f7247f2b778cc360bb7b5c1 (patch)
treeb4b17e30d475aa792198c110e2a38422509a5b53 /libavformat/mov.c
parentc3d07c173b2438d07056efd671a3f36361351552 (diff)
downloadffmpeg-c6f1e29a15cada5e1f7247f2b778cc360bb7b5c1.tar.gz
In mov demuxer, read alac sample from extradata, fix #2406
Originally committed as revision 25901 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index eeeba40cd5..9788e41a3e 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: