Commit c6f1e29a authored by Baptiste Coudurier's avatar Baptiste Coudurier

In mov demuxer, read alac sample from extradata, fix #2406

Originally committed as revision 25901 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c3d07c17
...@@ -1230,6 +1230,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, ByteIOContext *pb, int entries) ...@@ -1230,6 +1230,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, ByteIOContext *pb, int entries)
if (st->codec->extradata_size == 36) { if (st->codec->extradata_size == 36) {
st->codec->frame_size = AV_RB32(st->codec->extradata+12); st->codec->frame_size = AV_RB32(st->codec->extradata+12);
st->codec->channels = AV_RB8 (st->codec->extradata+21); st->codec->channels = AV_RB8 (st->codec->extradata+21);
st->codec->sample_rate = AV_RB32(st->codec->extradata+32);
} }
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment