diff options
Diffstat (limited to 'src/combined/ffmpeg/ff_audio_decoder.c')
-rw-r--r-- | src/combined/ffmpeg/ff_audio_decoder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_audio_decoder.c b/src/combined/ffmpeg/ff_audio_decoder.c index 8d7cc1574..6b524e80c 100644 --- a/src/combined/ffmpeg/ff_audio_decoder.c +++ b/src/combined/ffmpeg/ff_audio_decoder.c @@ -172,6 +172,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) { @@ -184,6 +185,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) { @@ -353,6 +355,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; @@ -379,6 +382,7 @@ static int ff_audio_decode(xine_t *xine, buf = outbuf; size = outsize; } +#endif /* LIBAVCODEC_VERSION_MAJOR >= 53 */ #if AVAUDIO > 2 AVPacket avpkt; |