changeset 2209:83236f48ae6a libavformat

compute absolute data offset after reading blocksize
author bcoudurier
date Tue, 26 Jun 2007 23:08:39 +0000
parents 027d24b0ea20
children dbcfc6a4c016
files aiff.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aiff.c	Mon Jun 25 21:47:29 2007 +0000
+++ b/aiff.c	Tue Jun 26 23:08:39 2007 +0000
@@ -354,8 +354,8 @@
 
             case MKTAG('S', 'S', 'N', 'D'):     /* Sampled sound chunk */
                 offset = get_be32(pb);      /* Offset of sound data */
+                get_be32(pb);               /* BlockSize... don't care */
                 offset += url_ftell(pb);    /* Compute absolute data offset */
-                get_be32(pb);               /* BlockSize... don't care */
                 if (st->codec->codec_id)    /* Assume COMM already parsed */
                     goto got_sound;
                 if (url_is_streamed(pb)) {