aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-10 13:40:53 +0100
committerMax Kellermann <max@duempel.org>2014-12-10 13:42:34 +0100
commitd8926ea5eb3314794db5a12ea8b09474a3c78cd1 (patch)
treed4b72109e215fc70f3eaccc3194b286914d172a5 /src/decoder/plugins
parent0c1e428c7d0d0b3d378b62be012e3c3709f0448e (diff)
downloadmpd-d8926ea5eb3314794db5a12ea8b09474a3c78cd1.tar.gz
mpd-d8926ea5eb3314794db5a12ea8b09474a3c78cd1.tar.xz
mpd-d8926ea5eb3314794db5a12ea8b09474a3c78cd1.zip
decoder/ffpmeg: use forward declarations
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/FfmpegMetaData.cxx4
-rw-r--r--src/decoder/plugins/FfmpegMetaData.hxx10
2 files changed, 5 insertions, 9 deletions
diff --git a/src/decoder/plugins/FfmpegMetaData.cxx b/src/decoder/plugins/FfmpegMetaData.cxx
index b81d19387..b8f7a12a3 100644
--- a/src/decoder/plugins/FfmpegMetaData.cxx
+++ b/src/decoder/plugins/FfmpegMetaData.cxx
@@ -25,6 +25,10 @@
#include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx"
+extern "C" {
+#include <libavutil/dict.h>
+}
+
static constexpr struct tag_table ffmpeg_tags[] = {
{ "year", TAG_DATE },
{ "author-sort", TAG_ARTIST_SORT },
diff --git a/src/decoder/plugins/FfmpegMetaData.hxx b/src/decoder/plugins/FfmpegMetaData.hxx
index 1f233fb6e..4b77adf5d 100644
--- a/src/decoder/plugins/FfmpegMetaData.hxx
+++ b/src/decoder/plugins/FfmpegMetaData.hxx
@@ -20,15 +20,7 @@
#ifndef MPD_FFMPEG_METADATA_HXX
#define MPD_FFMPEG_METADATA_HXX
-extern "C" {
-#include <libavutil/dict.h>
-}
-
-/* suppress the ffmpeg compatibility macro */
-#ifdef SampleFormat
-#undef SampleFormat
-#endif
-
+struct AVDictionary;
struct tag_handler;
void