Bug 131987

Summary: Update for akode-2.0.1 + FFMpeg-0.4.9.5790
Product: [Unmaintained] akodelib Reporter: Vladislav Mikhailikov <Vladislav.Mikhailikov>
Component: generalAssignee: Allan Sandfeld <kde>
Status: RESOLVED FIXED    
Severity: normal CC: rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vladislav Mikhailikov 2006-08-07 08:32:45 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Compiled From Sources
Compiler:          GNU GCC 4.1.1 Highly optimized, though all tests passed.
OS:                Linux

It's a patch that helps to fix a compilation issue with aKode 2.0.1. I can`t send this to a Kode directly (strange website, no addresses or contacts :(( ). Though you may need this to get latest aKode up and running.

Best regards and good luck,

-- Tanuki

--- akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp     2006-08-07 06:26:10.000000000 +0500
+++ akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp.new 2006-08-07 06:29:24.000000000 +0500
@@ -117,18 +117,21 @@
     if (config->channels > 2) return false;
     config->channel_config = MonoStereo;
     switch(codec_context->sample_fmt) {
+        case SAMPLE_FMT_U8:
+            config->sample_width = 8;
+            break;
         case SAMPLE_FMT_S16:
             config->sample_width = 16;
             break;
+        case SAMPLE_FMT_S24:
+            config->sample_width = 24;
+            break;
         case SAMPLE_FMT_S32:
             config->sample_width = 32;
             break;
         case SAMPLE_FMT_FLT:
             config->sample_width = -32;
             break;
-        case SAMPLE_FMT_DBL:
-            config->sample_width = -64;
-            break;
         default:
             return false;;
      }
Comment 1 Rex Dieter 2007-12-24 04:09:44 UTC
Patch confirmed included in akode-2.0.2 release.