]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
python client: Fix broken int2bin() in htsmsg
authorRick Phillips <ruuk@users.noreply.github.com>
Thu, 21 May 2015 15:16:28 +0000 (08:16 -0700)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 18:46:18 +0000 (20:46 +0200)
lib/py/tvh/htsmsg.py

index dc7d508815826365bcc023af8103ac51bd64f547..03ac1ba34cb4e8aa26371c189dda10cf604079b3 100644 (file)
@@ -24,7 +24,7 @@ Support for processing HTSMSG binary format
 
 def int2bin ( i ):
   return chr(i >> 24 & 0xFF) + chr(i >> 16 & 0xFF)\
-       + chr(i >> 16 & 0xFF) + chr(i & 0xFF)
+       + chr(i >> 8 & 0xFF) + chr(i & 0xFF)
 
 def bin2int ( d ):
   return (ord(d[0]) << 24) + (ord(d[1]) << 16)\