]> granicus.if.org Git - rtmpdump/commitdiff
Fix r239, there are 4 fields per record now
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 5 Feb 2010 04:45:22 +0000 (04:45 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 5 Feb 2010 04:45:22 +0000 (04:45 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@244 400ebc74-4327-4243-bc38-086b20814532

hashswf.c

index 5fe260ac4e59ecfee223ed1f10dfe3c5104ba343..8ce8cc58bd70e062ffb6a5dafe81ccc0578cffb6 100644 (file)
--- a/hashswf.c
+++ b/hashswf.c
@@ -389,7 +389,7 @@ RTMP_HashSWF(const char *url, unsigned int *size, unsigned char *hash, int age)
           if (strncmp(r1, file, i))
             continue;
           pos = ftell(f);
-          while (got < 3 && fgets(buf, sizeof(buf), f))
+          while (got < 4 && fgets(buf, sizeof(buf), f))
             {
               if (!strncmp(buf, "size: ", 6))
                 {