--- contrib/mm_ffmpeg/mm_ffmpeg.module	2009-12-09 17:49:41.000000000 +0100
+++ contrib/mm_ffmpeg/patched.mm_ffmpeg.module	2010-09-10 16:03:06.726678349 +0200
@@ -148,10 +148,25 @@ function mm_ffmpeg_video_thumbnail($file
  */
 function mm_ffmpeg_video(&$file, $configuration) {
   // get the file we should be operating on
+   // get the file we should be operating on
   $current_file = media_mover_api_config_current_file($file);
-
+ 
+  //DKJ
+  $path_info = pathinfo($current_file);
+  $file_ext = $path_info['extension'];
+  $audiofiles = array('mp3', 'ogg', 'wav');
+  if (in_array($file_ext, $audiofiles)) {   
+    $types = array('audio' => 1);
+  } else{
+    $types = array('video' => 1, 'audio' => 1);   
+  }
+  //END
+ 
   // first error check, make sure that we can decode  this kind of file
-  if (! ffmpeg_wrapper_can_decode($current_file)) {
+  //DKJ
+  //if (! ffmpeg_wrapper_can_decode($current_file)) {
+  if (! ffmpeg_wrapper_can_decode($current_file, $types)) { 
+  //END 
     $message = 'FFmpeg can not decode this file: %file !link';
     $variables = array(
       '%file' => $current_file,
@@ -459,4 +474,4 @@ function theme_mm_ffmpeg_email_user_erro
   $body .= t('We\'ll take a look at the file and see if we can help, '."\n".'but you can always try converting to a standard format and uploading again.') ."\n\n";
   $body .= t('Sorry, and thanks for using our site.');
   return $body;
-}
\ No newline at end of file
+}
