hedgewars/avwrapper/avwrapper.c
changeset 11614 3c959df6638e
parent 11612 b7d5d75469ee
child 11618 bc83e11e5ee7
equal deleted inserted replaced
11613:66880a42c2d7 11614:3c959df6638e
    59 // compatibility section
    59 // compatibility section
    60 #if LIBAVCODEC_VERSION_MAJOR < 54
    60 #if LIBAVCODEC_VERSION_MAJOR < 54
    61 #define OUTBUFFER_SIZE 200000
    61 #define OUTBUFFER_SIZE 200000
    62 static uint8_t g_OutBuffer[OUTBUFFER_SIZE];
    62 static uint8_t g_OutBuffer[OUTBUFFER_SIZE];
    63 #define avcodec_open2(x, y, z)              avcodec_open(x, y)
    63 #define avcodec_open2(x, y, z)              avcodec_open(x, y)
       
    64 #endif
       
    65 
       
    66 #if LIBAVCODEC_VERSION_MAJOR < 55
       
    67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y)
    64 #endif
    68 #endif
    65 
    69 
    66 #if LIBAVCODEC_VERSION_MAJOR < 56
    70 #if LIBAVCODEC_VERSION_MAJOR < 56
    67 #define av_frame_alloc                      avcodec_alloc_frame
    71 #define av_frame_alloc                      avcodec_alloc_frame
    68 #define av_frame_free                       av_freep
    72 #define av_frame_free                       av_freep