OSDN Git Service

Switch some ints to unsigned (they can only have positive values, this allows
authorSebastian Vater <cdgs.basty@googlemail.com>
Mon, 26 Apr 2010 22:37:13 +0000 (22:37 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 26 Apr 2010 22:37:13 +0000 (22:37 +0000)
commit473147bed01c0c6c82d85fd79d3e1c1d65542663
treec7bbd2dea2f22c32663c426d3c158d535fe2e912
parenta31e7956078e5039cc8a19985e4432ff94ebb0ff
Switch some ints to unsigned (they can only have positive values, this allows
compiler to optimize some math from mul/div to shr/shl). Also add a cast to
uint32_t when calling decodeplane32(), this silences a compiler warning.
Lastly, in decodeplane8/32(), flatten a double-loop into a single-loop and
calculate the length once before entering the loop instead of during every
iteration (since it doesn't change).

Patch by Sebastian Vater <cdgs.basty googlemail com>.

Originally committed as revision 22974 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/iff.c