according to specs, offset is before blocksize
[ffmpeg.git] / 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)) {