]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Reduce the number of senselessly scanned bytes.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 19 Feb 2008 15:55:14 +0000 (15:55 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 19 Feb 2008 15:55:14 +0000 (15:55 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12144 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/mpeg12.c

index 87f673d121312a41449e84032799090da71a6d9e..7f3a18195260da2cd911c48af23b26e842472b72 100644 (file)
@@ -1869,7 +1869,7 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
         }
     }
 eos: // end of slice
-    *buf += get_bits_count(&s->gb)/8 - 1;
+    *buf += (get_bits_count(&s->gb)-1)/8;
 //printf("y %d %d %d %d\n", s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y);
     return 0;
 }