Bug 131987 - Update for akode-2.0.1 + FFMpeg-0.4.9.5790
Summary: Update for akode-2.0.1 + FFMpeg-0.4.9.5790
Status: RESOLVED FIXED
Alias: None
Product: akodelib
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Allan Sandfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-07 08:32 UTC by Vladislav Mikhailikov
Modified: 2007-12-24 04:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.