changeset 30861:1f3b39209b2d

Fix value of bit counter at end of functions to prepare for future patches.
author cehoyos
date Mon, 15 Mar 2010 22:28:08 +0000
parents 824ea0613f52
children 2a8e5cea0c8c
files libmpdemux/mpeg_hdr.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c	Mon Mar 15 16:09:35 2010 +0000
+++ b/libmpdemux/mpeg_hdr.c	Mon Mar 15 22:28:08 2010 +0000
@@ -251,9 +251,8 @@
 
     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 @@
   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))