Skip to content

Commit

Permalink
avrdec: sample rate takes 3 bytes not 4
Browse files Browse the repository at this point in the history
Signed-off-by: Paul B Mahol <onemda@gmail.com>
  • Loading branch information
richardpl committed Nov 28, 2012
1 parent 1793128 commit b0d9b01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavformat/avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0d9b01

Please sign in to comment.