Browse Source

avrdec: sample rate takes 3 bytes not 4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 13 years ago
parent
commit
b0d9b011c7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/avr.c

+ 2
- 1
libavformat/avr.c View File

@@ -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);


Loading…
Cancel
Save