From 817593b5183d6bd79c62dbc31de2f24d74a288b3 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Fri, 18 Nov 2011 15:36:17 +0200 Subject: Fixed building with internal ffmpeg --- src/combined/ffmpeg/ff_audio_decoder.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/combined') diff --git a/src/combined/ffmpeg/ff_audio_decoder.c b/src/combined/ffmpeg/ff_audio_decoder.c index 3b810a3fa..4195b7b95 100644 --- a/src/combined/ffmpeg/ff_audio_decoder.c +++ b/src/combined/ffmpeg/ff_audio_decoder.c @@ -173,6 +173,7 @@ static void ff_audio_init_codec(ff_audio_decoder_t *this, unsigned int codec_typ * - DVB streams where multiple AAC LATM frames are packed to single PES * - DVB streams where MPEG audio frames do not follow PES packet boundaries */ +#if LIBAVCODEC_VERSION_MAJOR >= 53 if (codec_type == BUF_AUDIO_AAC_LATM || codec_type == BUF_AUDIO_MPEG) { @@ -185,6 +186,7 @@ static void ff_audio_init_codec(ff_audio_decoder_t *this, unsigned int codec_typ "ffmpeg_audio_dec: couldn't init parser\n"); } } +#endif } static int ff_audio_open_codec(ff_audio_decoder_t *this, unsigned int codec_type) { @@ -354,6 +356,7 @@ static int ff_audio_decode(xine_t *xine, int consumed; int parser_consumed = 0; +#if LIBAVCODEC_VERSION_MAJOR >= 53 if (parser_ctx) { uint8_t *outbuf; int outsize; @@ -380,6 +383,7 @@ static int ff_audio_decode(xine_t *xine, buf = outbuf; size = outsize; } +#endif /* LIBAVCODEC_VERSION_MAJOR >= 53 */ #if AVAUDIO > 2 AVPacket avpkt; -- cgit v1.2.3