Commit b0d9b011 authored by Paul B Mahol's avatar Paul B Mahol

avrdec: sample rate takes 3 bytes not 4

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1793128c
......@@ -61,8 +61,9 @@ static int avr_read_header(AVFormatContext *s)
avio_skip(s->pb, 2); // loop
avio_skip(s->pb, 2); // midi
avio_skip(s->pb, 1); // replay speed
st->codec->sample_rate = avio_rb32(s->pb);
st->codec->sample_rate = avio_rb24(s->pb);
avio_skip(s->pb, 4 * 3);
avio_skip(s->pb, 2 * 3);
avio_skip(s->pb, 20);
......
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