# HG changeset patch # User michael # Date 1203436514 0 # Node ID 48a6bbc1c6334d07bc8970250abb8d7ebaedd9cf # Parent f1d701294a8957ced1fc7a94cb5b129d0fb13155 Reduce the number of senselessly scanned bytes. diff -r f1d701294a89 -r 48a6bbc1c633 mpeg12.c --- a/mpeg12.c Tue Feb 19 07:24:00 2008 +0000 +++ b/mpeg12.c Tue Feb 19 15:55:14 2008 +0000 @@ -1869,7 +1869,7 @@ } } 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; }