[FFmpeg-cvslog] avrdec: sample rate takes 3 bytes not 4
Paul B Mahol
git at videolan.org
Wed Nov 28 12:10:51 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Nov 28 11:02:22 2012 +0000| [b0d9b011c752f8526b73ffcef727c21f34cc5e46] | committer: Paul B Mahol
avrdec: sample rate takes 3 bytes not 4
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0d9b011c752f8526b73ffcef727c21f34cc5e46
---
libavformat/avr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/avr.c b/libavformat/avr.c
index f13b526..c73df96 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);
More information about the ffmpeg-cvslog
mailing list