aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-19 15:55:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-19 15:55:14 +0000
commit05218081581f49c4c948cf8e95544075b41506bf (patch)
treed6f35fa10fe98506fe0c6d7dd804c943d6f6972a /libavcodec/mpeg12.c
parentc367d0c65336b4238eb7188921996fd1387261d4 (diff)
downloadffmpeg-05218081581f49c4c948cf8e95544075b41506bf.tar.gz
Reduce the number of senselessly scanned bytes.
Originally committed as revision 12144 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 87f673d121..7f3a181952 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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;
}