Commit 5834843b authored by Max Kellermann's avatar Max Kellermann

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!
parent 762f3afb
......@@ -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 &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment