aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-28 11:02:22 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-28 11:02:22 +0000
commitb0d9b011c752f8526b73ffcef727c21f34cc5e46 (patch)
tree60258a23ef9694321558df2e6a9e4939a8a357b6 /libavformat/avr.c
parent1793128cf7d98d1a4a326fef16eaf575874fe081 (diff)
downloadffmpeg-b0d9b011c752f8526b73ffcef727c21f34cc5e46.tar.gz
avrdec: sample rate takes 3 bytes not 4
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/avr.c')
-rw-r--r--libavformat/avr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avr.c b/libavformat/avr.c
index f13b52671d..c73df96c7f 100644
--- a/libavformat/avr.c
+++ b/libavformat/avr.c
@@ -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);