[FFmpeg-cvslog] r12144 - trunk/libavcodec/mpeg12.c
michael
subversion
Tue Feb 19 16:55:14 CET 2008
Author: michael
Date: Tue Feb 19 16:55:14 2008
New Revision: 12144
Log:
Reduce the number of senselessly scanned bytes.
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Tue Feb 19 16:55:14 2008
@@ -1869,7 +1869,7 @@ static int mpeg_decode_slice(Mpeg1Contex
}
}
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;
}
More information about the ffmpeg-cvslog
mailing list