From 11d540a480f962e5a854b6c35da132f5e7f1f4a5 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 25 Jun 2007 21:46:15 +0000 Subject: [PATCH] according to specs, offset is before blocksize Originally committed as revision 9429 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/aiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aiff.c b/libavformat/aiff.c index da011ca0bc..c420e0b52f 100644 --- a/libavformat/aiff.c +++ b/libavformat/aiff.c @@ -353,9 +353,9 @@ static int aiff_read_header(AVFormatContext *s, break; case MKTAG('S', 'S', 'N', 'D'): /* Sampled sound chunk */ - get_be32(pb); /* Block align... don't care */ offset = get_be32(pb); /* Offset of sound data */ offset += url_ftell(pb); /* Compute absolute data offset */ + get_be32(pb); /* Block align... don't care */ if (st->codec->codec_id) /* Assume COMM already parsed */ goto got_sound; if (url_is_streamed(pb)) {