# HG changeset patch
# User koda
# Date 1458662371 14400
# Node ID 3c959df6638ebb2e83f1b2cbbda669235344226b
# Parent  66880a42c2d79986d3207e46526ee65d2d348b48
Add an additional compatibility layer for video

diff -r 66880a42c2d7 -r 3c959df6638e hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Tue Mar 22 12:09:26 2016 +0300
+++ b/hedgewars/avwrapper/avwrapper.c	Tue Mar 22 11:59:31 2016 -0400
@@ -63,6 +63,10 @@
 #define avcodec_open2(x, y, z)              avcodec_open(x, y)
 #endif
 
+#if LIBAVCODEC_VERSION_MAJOR < 55
+#define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y)
+#endif
+
 #if LIBAVCODEC_VERSION_MAJOR < 56
 #define av_frame_alloc                      avcodec_alloc_frame
 #define av_frame_free                       av_freep