decoder/ffmpeg: fix the AVCodecParameters API check

Turns out the libavcodec version numbers are not linear;  the feature
was added in FFmpeg 3.1 commit 998e1b8, libavcodec 57.14.0; but FFmpeg
3.0 has version 57.48.101.  Ouch!
This commit is contained in:
Max Kellermann 2016-08-02 19:15:23 +02:00
parent 762f3afb9d
commit 5834843b8a

View File

@ -86,7 +86,7 @@ ffmpeg_init(gcc_unused const config_param &param)
return true;
}
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 5, 0)
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 25, 0) /* FFmpeg 3.1 */
gcc_pure
static const AVCodecParameters &