[MPlayer-cvslog] r35437 - trunk/libmpcodecs/ad_ffmpeg.c
upsuper
subversion at mplayerhq.hu
Wed Nov 21 13:02:53 CET 2012
Author: upsuper
Date: Wed Nov 21 13:02:52 2012
New Revision: 35437
Log:
Use size_t instead of unsigned in address arithmetic.
Use of size_t in address arithmetic provides better performance in
64bit system.
Modified:
trunk/libmpcodecs/ad_ffmpeg.c
Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c Wed Nov 21 12:37:24 2012 (r35436)
+++ trunk/libmpcodecs/ad_ffmpeg.c Wed Nov 21 13:02:52 2012 (r35437)
@@ -202,13 +202,13 @@ static int control(sh_audio_t *sh,int cm
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++) {
More information about the MPlayer-cvslog
mailing list