[MPlayer-cvslog] r35331 - trunk/sub/vobsub.c

reimar subversion at mplayerhq.hu
Thu Nov 1 23:13:14 CET 2012


Author: reimar
Date: Thu Nov  1 23:13:14 2012
New Revision: 35331

Log:
Do not needlessly use "long" types.

Modified:
   trunk/sub/vobsub.c

Modified: trunk/sub/vobsub.c
==============================================================================
--- trunk/sub/vobsub.c	Thu Nov  1 23:00:48 2012	(r35330)
+++ trunk/sub/vobsub.c	Thu Nov  1 23:13:14 2012	(r35331)
@@ -837,7 +837,7 @@ int vobsub_parse_ifo(void* this, const c
         } else if (memcmp(block, ifo_magic, strlen(ifo_magic) + 1))
             mp_msg(MSGT_VOBSUB, MSGL_ERR, "VobSub: Bad magic in IFO header\n");
         else {
-            unsigned long pgci_sector = block[0xcc] << 24 | block[0xcd] << 16
+            unsigned pgci_sector = block[0xcc] << 24 | block[0xcd] << 16
                 | block[0xce] << 8 | block[0xcf];
             int standard = (block[0x200] & 0x30) >> 4;
             int resolution = (block[0x201] & 0x0c) >> 2;
@@ -870,8 +870,8 @@ int vobsub_parse_ifo(void* this, const c
                 || rar_read(block, sizeof(block), 1, fd) != 1)
                 mp_msg(MSGT_VOBSUB, MSGL_ERR, "VobSub: Can't read IFO PGCI\n");
             else {
-                unsigned long idx;
-                unsigned long pgc_offset = block[0xc] << 24 | block[0xd] << 16
+                unsigned idx;
+                unsigned pgc_offset = block[0xc] << 24 | block[0xd] << 16
                     | block[0xe] << 8 | block[0xf];
                 for (idx = 0; idx < 16; ++idx) {
                     unsigned char *p = block + pgc_offset + 0xa4 + 4 * idx;


More information about the MPlayer-cvslog mailing list