From: hyc Date: Fri, 5 Feb 2010 04:45:22 +0000 (+0000) Subject: Fix r239, there are 4 fields per record now X-Git-Tag: v2.4~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b357c291164802852a71ff7bba34a3d2c891ab5;p=rtmpdump Fix r239, there are 4 fields per record now git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@244 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/hashswf.c b/hashswf.c index 5fe260a..8ce8cc5 100644 --- 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)) {