changeset 1883:12f260596631 libavcodec

don't fetch the size of SEQH unless SEQH was found
author melanson
date Sun, 14 Mar 2004 15:04:21 +0000
parents 5456ab242388
children de6a0d995ca7
files svq3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Sun Mar 14 04:08:11 2004 +0000
+++ b/svq3.c	Sun Mar 14 15:04:21 2004 +0000
@@ -799,13 +799,13 @@
         break;
       extradata++;
     }
-    size = BE_32(&extradata[4]);
 
     /* if a match was found, parse the extra data */
     if (!memcmp (extradata, "SEQH", 4)) {
 
       GetBitContext gb;
 
+      size = BE_32(&extradata[4]);
       init_get_bits (&gb, extradata + 8, size);
 
       /* 'frame size code' and optional 'width, height' */