From 74dcb8ec364ec4a58a3c87c0133b79c740624a9e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 8 May 2021 19:20:06 +0000 Subject: ffmpeg: fixed build regression git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9970 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp index 15f3e04a2..2bb490d71 100644 --- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp +++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp @@ -110,7 +110,11 @@ bool DecoderFFmpeg::initialize() qWarning("DecoderFFmpeg: too small buffer size: %d bytes", pd.buf_size); return false; } +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(59, 0, 101) const AVInputFormat *fmt = av_probe_input_format(&pd, 1); +#else + AVInputFormat *fmt = av_probe_input_format(&pd, 1); +#endif if(!fmt) { qWarning("DecoderFFmpeg: usupported format"); -- cgit v1.2.3-13-gbd6f