Index: ffmpeg_wrapper.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ffmpeg_wrapper/ffmpeg_wrapper.module,v
retrieving revision 1.1.2.20.2.27
diff -u -p -r1.1.2.20.2.27 ffmpeg_wrapper.module
--- ffmpeg_wrapper.module	20 Apr 2009 21:18:45 -0000	1.1.2.20.2.27
+++ ffmpeg_wrapper.module	17 Jul 2009 22:55:54 -0000
@@ -691,11 +691,11 @@ function ffmpeg_wrapper_file_data($path 
 
     // get audio settings
     // format is: codec, sample rate, stereo/mono, bitrate
-    $pattern = "/Audio: (.*), ([0-9]*) Hz, (stereo|mono)/";
+    $pattern = "/Audio: (.*), ([0-9]*) Hz, (stereo|mono|([0-9]+) channels)/";
     preg_match($pattern, $output, $matches);
     $file['audio']['codec'] = !empty($matches[1]) ? $matches[1] : 'na';
     $file['audio']['ar'] = !empty($matches[2]) ? $matches[2] : 'na';
-    $file['audio']['ac'] = (!empty($matches[3]) && $matches[3] == 'stereo') ? 2 : 1;
+    $file['audio']['ac'] = !empty($matches[4]) ? $matches[4] : (!empty($matches[3]) && $matches[3] == 'stereo' ? 2 : 1);
 
     // take the last match and extract the bit rate if present
     $pattern = "/Audio: .* (.*) kb\/s/";
