gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10145: compare 3 bytes to FLV, not


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10145: compare 3 bytes to FLV, not 0
Date: Mon, 27 Oct 2008 08:59:20 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10145
committer: address@hidden
branch nick: trunk
timestamp: Mon 2008-10-27 08:59:20 -0600
message:
  compare 3 bytes to FLV, not 0
modified:
  testsuite/libamf.all/test_flv.cpp
=== modified file 'testsuite/libamf.all/test_flv.cpp'
--- a/testsuite/libamf.all/test_flv.cpp 2008-10-27 14:46:27 +0000
+++ b/testsuite/libamf.all/test_flv.cpp 2008-10-27 14:59:20 +0000
@@ -142,7 +142,7 @@
         runtest.untested("Decoded FLV header");
     } else {
         boost::uint32_t size = *(reinterpret_cast<boost::uint32_t 
*>(head->head_size));
-        if ((memcmp(head->sig, "FLV", 0) == 0)
+        if ((memcmp(head->sig, "FLV", 3) == 0)
             && (head->version == 1)
             && (size == 9)) {
             runtest.pass("Decoded FLV header");


reply via email to

[Prev in Thread] Current Thread [Next in Thread]