Fixed unused function warnings when FFMPEG backend is used.
#include <freerdp/types.h>
#include <freerdp/codec/dsp.h>
+#if !defined(WITH_DSP_FFMPEG)
#if defined(WITH_GSM)
#include <gsm/gsm.h>
#endif
#include <lame/lame.h>
#endif
-#if defined(WITH_DSP_FFMPEG)
-#include "dsp_ffmpeg.h"
-#endif
-
#if defined(WITH_FAAD2)
#include <neaacdec.h>
#endif
#include <faac.h>
#endif
+#else
+#include "dsp_ffmpeg.h"
+#endif
+
#define TAG FREERDP_TAG("dsp")
+#if !defined(WITH_DSP_FFMPEG)
+
union _ADPCM
{
struct
@@ -923,6 +926,8 @@ static BOOL freerdp_dsp_encode_ms_adpcm(FREERDP_DSP_CONTEXT* context, const BYTE
return TRUE;
}
+#endif
+
FREERDP_DSP_CONTEXT* freerdp_dsp_context_new(BOOL encoder)
{
#if defined(WITH_DSP_FFMPEG)
