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:
parent
762f3afb9d
commit
5834843b8a
@ -86,7 +86,7 @@ ffmpeg_init(gcc_unused const config_param ¶m)
|
|||||||
return true;
|
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
|
gcc_pure
|
||||||
static const AVCodecParameters &
|
static const AVCodecParameters &
|
||||||
|
Loading…
Reference in New Issue
Block a user