[MPlayer-cvslog] r30903 - trunk/libmpdemux/mpeg_hdr.c

cehoyos subversion at mplayerhq.hu
Mon Mar 15 23:28:08 CET 2010


Author: cehoyos
Date: Mon Mar 15 23:28:08 2010
New Revision: 30903

Log:
Fix value of bit counter at end of functions to prepare for future patches.

Modified:
   trunk/libmpdemux/mpeg_hdr.c

Modified: trunk/libmpdemux/mpeg_hdr.c
==============================================================================
--- trunk/libmpdemux/mpeg_hdr.c	Mon Mar 15 17:09:35 2010	(r30902)
+++ trunk/libmpdemux/mpeg_hdr.c	Mon Mar 15 23:28:08 2010	(r30903)
@@ -251,9 +251,8 @@ int mp4_header_process_vol(mp_mpeg_heade
 
     n++; //marker bit
 
-    if(getbits(buffer, n, 1)) {	//fixed_vop_timeinc
-      n++;
-      n = read_timeinc(picture, buffer, n);
+    if(getbits(buffer, n++, 1)) {      //fixed_vop_timeinc
+      n += read_timeinc(picture, buffer, n);
 
       if(picture->timeinc_unit)
         picture->fps = (float) picture->timeinc_resolution / (float) picture->timeinc_unit;
@@ -276,7 +275,7 @@ void mp4_header_process_vop(mp_mpeg_head
   n++;
   getbits(buffer, n, 1);
   n++;
-  n = read_timeinc(picture, buffer, n);
+  n += read_timeinc(picture, buffer, n);
 }
 
 #define min(a, b) ((a) <= (b) ? (a) : (b))


More information about the MPlayer-cvslog mailing list