From d8926ea5eb3314794db5a12ea8b09474a3c78cd1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 10 Dec 2014 13:40:53 +0100 Subject: decoder/ffpmeg: use forward declarations --- src/decoder/plugins/FfmpegMetaData.cxx | 4 ++++ src/decoder/plugins/FfmpegMetaData.hxx | 10 +--------- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'src/decoder/plugins') 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 +} + 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 -} - -/* suppress the ffmpeg compatibility macro */ -#ifdef SampleFormat -#undef SampleFormat -#endif - +struct AVDictionary; struct tag_handler; void -- cgit v1.2.3