audiodecoder: Fix compile with ENABLE_FFMPEGDEC

This commit is contained in:
M. Liebmann
2013-12-22 01:41:11 +01:00
parent aacc4189a4
commit 944dac5a67
2 changed files with 15 additions and 1 deletions

View File

@@ -36,8 +36,15 @@
#ifndef __AUDIO_METADATA__
#define __AUDIO_METADATA__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#ifndef ENABLE_FFMPEGDEC
#include <mad.h>
#endif
class CAudioMetaData
{
@@ -69,8 +76,10 @@ public:
unsigned int bitrate; /* overall bitrate, vbr file: current bitrate */
unsigned int avg_bitrate; /* average bitrate in case of vbr file */
unsigned int samplerate;
#ifndef ENABLE_FFMPEGDEC
enum mad_layer layer;
enum mad_mode mode;
#endif
time_t total_time;
long audio_start_pos; /* position of first audio frame */
bool vbr;