[MPlayer-cvslog] r24925 - trunk/libaf/af_scaletempo.c

uau subversion at mplayerhq.hu
Thu Nov 1 07:52:42 CET 2007


Author: uau
Date: Thu Nov  1 07:52:41 2007
New Revision: 24925

Log:
af_scaletempo: Fix audio copy position

Because of a missing *num_channels factor the filter copied audio from
an incorrect position. This mixed up the channel order and hurt audio
quality even if the channels had identical content.


Modified:
   trunk/libaf/af_scaletempo.c

Modified: trunk/libaf/af_scaletempo.c
==============================================================================
--- trunk/libaf/af_scaletempo.c	(original)
+++ trunk/libaf/af_scaletempo.c	Thu Nov  1 07:52:41 2007
@@ -143,7 +143,7 @@ int _best_overlap_offset_float(af_scalet
     search_start += s->num_channels;
   }
 
-  return best_off * 4;
+  return best_off * 4 * s->num_channels;
 }
 
 int _best_overlap_offset_s16(af_scaletempo_t* s) {
@@ -175,7 +175,7 @@ int _best_overlap_offset_s16(af_scaletem
     search_start += s->num_channels;
   }
 
-  return best_off * 2;
+  return best_off * 2 * s->num_channels;
 }
 
 void _output_overlap_float(af_scaletempo_t* s, int8_t* buf_out, int bytes_off) {



More information about the MPlayer-cvslog mailing list