changeset 2207:87818c05d64d libavformat

according to specs, offset is before blocksize
author bcoudurier
date Mon, 25 Jun 2007 21:46:15 +0000
parents c049274b7bd4
children 027d24b0ea20
files aiff.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aiff.c	Mon Jun 25 21:31:33 2007 +0000
+++ b/aiff.c	Mon Jun 25 21:46:15 2007 +0000
@@ -353,9 +353,9 @@
                 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)) {