according to specs, offset is before blocksize
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 25 Jun 2007 21:46:15 +0000 (21:46 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 25 Jun 2007 21:46:15 +0000 (21:46 +0000)
Originally committed as revision 9429 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/aiff.c

index da011ca..c420e0b 100644 (file)
@@ -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)) {