# HG changeset patch # User koda # Date 1447694890 -3600 # Node ID 06ecd48e65ef4aef06c86a615dd775359fc79a14 # Parent 1a57b0d4cc4ea6d8fab32fa5bd2e3cf114039282 avwrapper: Explicitly check for macro existence diff -r 1a57b0d4cc4e -r 06ecd48e65ef hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Sat Nov 07 15:07:33 2015 +0100 +++ b/hedgewars/avwrapper/avwrapper.c Mon Nov 16 18:28:10 2015 +0100 @@ -79,10 +79,16 @@ } #endif -#if LIBAVCODEC_VERSION_MAJOR < 56 +#ifndef AV_CODEC_CAP_DELAY #define AV_CODEC_CAP_DELAY CODEC_CAP_DELAY +#endif +#ifndef AV_CODEC_CAP_VARIABLE_FRAME_SIZE #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE CODEC_CAP_VARIABLE_FRAME_SIZE +#endif +#ifndef AV_CODEC_FLAG_GLOBAL_HEADER #define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER +#endif +#ifndef AV_CODEC_FLAG_QSCALE #define AV_CODEC_FLAG_QSCALE CODEC_FLAG_QSCALE #endif