Hi Johannes, On 05.11.2015 11:30, Johannes Schauer wrote: > many thanks for the patch! > > I already forwarded this upstream as https://github.com/vcmi/vcmi/pull/135
Thanks. > The problem is, that the developers are still using libav*53 4:0.8.17 in their > CI framework. I see, Ubuntu LTS... > Is there a clever preprocessor check that will use the right > construct even with old libav? Yes, you can use: * for AVPixelFormat, AV_PIX_FMT_*: #if LIBAVUTIL_VERSION_MAJOR > 51 * for av_frame_alloc/av_frame_free: #if LIBAVUTIL_VERSION_MAJOR > 52 Best regards, Andreas