diff options
author | wm4 <wm4@nowhere> | 2017-01-24 08:11:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-24 08:11:42 +0100 |
commit | b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d (patch) | |
tree | 676e8e9ef45690491d827b553ec8cc29f49e84f3 /video/sws_utils.c | |
parent | 6be58df8d14922bc1f4252f9f69ca9c0d74c331a (diff) | |
download | mpv-b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d.tar.bz2 mpv-b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d.tar.xz |
build: replace some FFmpeg API checks with version checks
The FFmpeg versions we support all have the APIs we were checking for.
Only Libav missed them. Simplify this by explicitly checking for FFmpeg
in the code, instead of trying to detect the presence of the API.
Diffstat (limited to 'video/sws_utils.c')
-rw-r--r-- | video/sws_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c index 45918b19d1..33eae6efa9 100644 --- a/video/sws_utils.c +++ b/video/sws_utils.c @@ -217,7 +217,7 @@ int mp_sws_reinit(struct mp_sws_context *ctx) av_opt_set_double(ctx->sws, "param0", ctx->params[0], 0); av_opt_set_double(ctx->sws, "param1", ctx->params[1], 0); -#if HAVE_AVCODEC_CHROMA_POS_API +#if LIBAVCODEC_VERSION_MICRO >= 100 int cr_src = mp_chroma_location_to_av(src->chroma_location); int cr_dst = mp_chroma_location_to_av(dst->chroma_location); int cr_xpos, cr_ypos; |