SOURCES: akode-ffmpeg.patch (NEW) - fix for ffmpeg missing SAMPLE_...

glen glen at pld-linux.org
Tue Dec 5 00:29:56 CET 2006


Author: glen                         Date: Mon Dec  4 23:29:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for ffmpeg missing SAMPLE_FMT_DBL (from http://www.nabble.com/Build-error-in-SVN-akode-plugins-ffmpeg_decoder-t2204848.html)

---- Files affected:
SOURCES:
   akode-ffmpeg.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/akode-ffmpeg.patch
diff -u /dev/null SOURCES/akode-ffmpeg.patch:1.1
--- /dev/null	Tue Dec  5 00:29:55 2006
+++ SOURCES/akode-ffmpeg.patch	Tue Dec  5 00:29:50 2006
@@ -0,0 +1,29 @@
+http://bugs.kde.org/show_bug.cgi?id=131987
+
+--- 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;;
+      }
================================================================


More information about the pld-cvs-commit mailing list