Mercurial > libavcodec.hg
diff mpegaudio_parser.c @ 11661:7a5f3c94b9ad libavcodec
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>.
author | rbultje |
---|---|
date | Mon, 26 Apr 2010 22:37:13 +0000 |
parents | 30dad2d5e7fe |
children |