changeset 35343:850d3a293e87

Use size_t instead of unsigned in address arithmetic. Use of size_t in address arithmetic provides better performance in 64bit system.
author upsuper
date Wed, 21 Nov 2012 12:02:52 +0000
parents 6d9e9c6d3cab
children 228b73274ab6
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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++) {