Author: duncan
Date: Sat Dec  2 12:37:43 2006
New Revision: 2144

Modified:
   trunk/metadata/src/video/mpeginfo.py

Log:
Replaced tabs with spaces


Modified: trunk/metadata/src/video/mpeginfo.py
==============================================================================
--- trunk/metadata/src/video/mpeginfo.py        (original)
+++ trunk/metadata/src/video/mpeginfo.py        Sat Dec  2 12:37:43 2006
@@ -293,35 +293,35 @@
         """
         read SCR (timestamp) for MPEG2 at the buffer beginning (6 Bytes)
         """
-       highbit = (ord(buffer[0])&0x20)>>5
+        highbit = (ord(buffer[0])&0x20)>>5
 
-       low4Bytes= ((long(ord(buffer[0])) & 0x18) >> 3) << 30
-       low4Bytes |= (ord(buffer[0]) & 0x03) << 28
-       low4Bytes |= ord(buffer[1]) << 20
-       low4Bytes |= (ord(buffer[2]) & 0xF8) << 12
-       low4Bytes |= (ord(buffer[2]) & 0x03) << 13
-       low4Bytes |= ord(buffer[3]) << 5
-       low4Bytes |= (ord(buffer[4])) >> 3
+        low4Bytes= ((long(ord(buffer[0])) & 0x18) >> 3) << 30
+        low4Bytes |= (ord(buffer[0]) & 0x03) << 28
+        low4Bytes |= ord(buffer[1]) << 20
+        low4Bytes |= (ord(buffer[2]) & 0xF8) << 12
+        low4Bytes |= (ord(buffer[2]) & 0x03) << 13
+        low4Bytes |= ord(buffer[3]) << 5
+        low4Bytes |= (ord(buffer[4])) >> 3
 
-       sys_clock_ref=(ord(buffer[4]) & 0x3) << 7
-       sys_clock_ref|=(ord(buffer[5]) >> 1)
+        sys_clock_ref=(ord(buffer[4]) & 0x3) << 7
+        sys_clock_ref|=(ord(buffer[5]) >> 1)
 
-       return (long(highbit * (1<<16) * (1<<16)) + low4Bytes) / 90000
+        return (long(highbit * (1<<16) * (1<<16)) + low4Bytes) / 90000
 
 
     def ReadSCRMpeg1(self, buffer):
         """
         read SCR (timestamp) for MPEG1 at the buffer beginning (5 Bytes)
         """
-       highbit = (ord(buffer[0]) >> 3) & 0x01
+        highbit = (ord(buffer[0]) >> 3) & 0x01
 
-       low4Bytes = ((long(ord(buffer[0])) >> 1) & 0x03) << 30
-       low4Bytes |= ord(buffer[1]) << 22;
-       low4Bytes |= (ord(buffer[2]) >> 1) << 15;
-       low4Bytes |= ord(buffer[3]) << 7;
-       low4Bytes |= ord(buffer[4]) >> 1;
+        low4Bytes = ((long(ord(buffer[0])) >> 1) & 0x03) << 30
+        low4Bytes |= ord(buffer[1]) << 22;
+        low4Bytes |= (ord(buffer[2]) >> 1) << 15;
+        low4Bytes |= ord(buffer[3]) << 7;
+        low4Bytes |= ord(buffer[4]) >> 1;
 
-       return (long(highbit) * (1<<16) * (1<<16) + low4Bytes) / 90000;
+        return (long(highbit) * (1<<16) * (1<<16) + low4Bytes) / 90000;
 
 
     def ReadPTS(self, buffer):

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to