hedgewars/avwrapper/avwrapper.c
changeset 11621 968bff2534ca
parent 11619 dc0fc56c03ca
child 11629 c2e6df2cfac7
equal deleted inserted replaced
11619:dc0fc56c03ca 11621:968bff2534ca
    66 #if LIBAVCODEC_VERSION_MAJOR < 55
    66 #if LIBAVCODEC_VERSION_MAJOR < 55
    67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y)
    67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y)
    68 #endif
    68 #endif
    69 
    69 
    70 #if LIBAVCODEC_VERSION_MAJOR < 56
    70 #if LIBAVCODEC_VERSION_MAJOR < 56
       
    71 #if LIBAVCODEC_VERSION_MAJOR < 55
       
    72 #define av_frame_free                       avfreep
       
    73 #else
       
    74 #define av_frame_free                       avcodec_free_frame
       
    75 #endif
       
    76 
    71 #define av_frame_alloc                      avcodec_alloc_frame
    77 #define av_frame_alloc                      avcodec_alloc_frame
    72 #define av_frame_free                       avcodec_free_frame
       
    73 #define av_frame_unref                      avcodec_get_frame_defaults
    78 #define av_frame_unref                      avcodec_get_frame_defaults
    74 #define av_packet_rescale_ts                rescale_ts
    79 #define av_packet_rescale_ts                rescale_ts
    75 
    80 
    76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    81 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    77 {
    82 {