# HG changeset patch # User upsuper # Date 1353499372 0 # Node ID 850d3a293e87a1cd23233186548e3e9c4de83daf # Parent 6d9e9c6d3cab658dc40bf2cdaba2e6e492ffc866 Use size_t instead of unsigned in address arithmetic. Use of size_t in address arithmetic provides better performance in 64bit system. diff -r 6d9e9c6d3cab -r 850d3a293e87 libmpcodecs/ad_ffmpeg.c --- a/libmpcodecs/ad_ffmpeg.c Wed Nov 21 11:37:24 2012 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Wed Nov 21 12:02:52 2012 +0000 @@ -202,13 +202,13 @@ return CONTROL_UNKNOWN; } -static av_always_inline void copy_samples_planar(unsigned bps, - unsigned nb_samples, - unsigned nb_channels, +static av_always_inline void copy_samples_planar(size_t bps, + size_t nb_samples, + size_t nb_channels, unsigned char *dst, unsigned char **src) { - unsigned s, c, o = 0; + size_t s, c, o = 0; for (s = 0; s < nb_samples; s++) { for (c = 0; c < nb_channels; c++) {