diff --git a/multimedia/video/smpeg/files/smpeg-0.4.5-gcc6.patch b/multimedia/video/smpeg/files/smpeg-0.4.5-gcc6.patch
new file mode 100644
index 0000000000..cd100fe570
--- /dev/null
+++ b/multimedia/video/smpeg/files/smpeg-0.4.5-gcc6.patch
@@ -0,0 +1,25 @@
+--- smpeg-0.4.5/audio/hufftable.cpp.old 2016-09-21 17:28:34.497031221 -0400
++++ smpeg-0.4.5/audio/hufftable.cpp 2016-09-21 17:30:24.346141555 -0400
+@@ -550,11 +550,11 @@
+
+ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
+ {
+- { 0, 0-1, 0-1, 0, 0, htd33},
++ { 0, (unsigned) 0-1, (unsigned) 0-1, 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, (unsigned) 0-1, (unsigned) 0-1, 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 +564,7 @@
+ {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, (unsigned) 0-1, (unsigned) 0-1, 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},
diff --git a/multimedia/video/smpeg/pspec.xml b/multimedia/video/smpeg/pspec.xml
index 46eecfb64f..c656a1eddc 100644
--- a/multimedia/video/smpeg/pspec.xml
+++ b/multimedia/video/smpeg/pspec.xml
@@ -21,6 +21,7 @@
mesa-glu-devel
+ smpeg-0.4.5-gcc6.patch
smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff
smpeg-0.4.5-fix-header.patch
smpeg-0.4.5-libsupc++.patch