summary refs log tree commit diff
path: root/pkgs/development/libraries/smpeg2/gcc6.patch
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-08-26 22:23:31 +0000
committerOrivej Desh <orivej@gmx.fr>2017-08-26 23:15:18 +0000
commit5772ce1dd8947173d020d91541185e8b37bd3fa6 (patch)
treef23352913a5acba6df1b31a3ab8fc75330f2d58f /pkgs/development/libraries/smpeg2/gcc6.patch
parent1715436b75696d9885b345dd8159e12244d0f7f5 (diff)
downloadnixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar.gz
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar.bz2
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar.lz
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar.xz
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.tar.zst
nixlib-5772ce1dd8947173d020d91541185e8b37bd3fa6.zip
smpeg2: init at svn412
Diffstat (limited to 'pkgs/development/libraries/smpeg2/gcc6.patch')
-rw-r--r--pkgs/development/libraries/smpeg2/gcc6.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/smpeg2/gcc6.patch b/pkgs/development/libraries/smpeg2/gcc6.patch
new file mode 100644
index 000000000000..165feb4428c2
--- /dev/null
+++ b/pkgs/development/libraries/smpeg2/gcc6.patch
@@ -0,0 +1,33 @@
+--- a/audio/hufftable.cpp
++++ b/audio/hufftable.cpp
+@@ -9,6 +9,7 @@
+ #include "config.h"
+ #endif
+ 
++#include <climits>
+ #include "MPEGaudio.h"
+ 
+ static const unsigned int
+@@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16,  1},{  8,  1},{  4,
+ 
+ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
+ {
+-  { 0, 0-1, 0-1, 0,  0, htd33},
++  { 0, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   { 1, 2-1, 2-1, 0,  7,htd01},
+   { 2, 3-1, 3-1, 0, 17,htd02},
+   { 3, 3-1, 3-1, 0, 17,htd03},
+-  { 4, 0-1, 0-1, 0,  0, htd33},
++  { 4, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   { 5, 4-1, 4-1, 0, 31,htd05},
+   { 6, 4-1, 4-1, 0, 31,htd06},
+   { 7, 6-1, 6-1, 0, 71,htd07},
+@@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN
+   {11, 8-1, 8-1, 0,127,htd11},
+   {12, 8-1, 8-1, 0,127,htd12},
+   {13,16-1,16-1, 0,511,htd13},
+-  {14, 0-1, 0-1, 0,  0, htd33},
++  {14, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   {15,16-1,16-1, 0,511,htd15},
+   {16,16-1,16-1, 1,511,htd16},
+   {17,16-1,16-1, 2,511,htd16},