hedgewars/avwrapper/avwrapper.c
branch0.9.22
changeset 11622 02657dddb5d8
parent 11620 3ff4c021a24a
child 11630 11f6a4c316a1
equal deleted inserted replaced
11620:3ff4c021a24a 11622:02657dddb5d8
    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
    64 #endif
    65 
    65 
    66 #if LIBAVCODEC_VERSION_MAJOR < 56
    66 #if LIBAVCODEC_VERSION_MAJOR < 56
       
    67 #if LIBAVCODEC_VERSION_MAJOR < 55
       
    68 #define av_frame_free                       avfreep
       
    69 #else
       
    70 #define av_frame_free                       avcodec_free_frame
       
    71 #endif
       
    72 
    67 #define av_frame_alloc                      avcodec_alloc_frame
    73 #define av_frame_alloc                      avcodec_alloc_frame
    68 #define av_frame_free                       avcodec_free_frame
       
    69 #define av_packet_rescale_ts                rescale_ts
    74 #define av_packet_rescale_ts                rescale_ts
    70 
    75 
    71 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    72 {
    77 {
    73     if (pkt->pts != AV_NOPTS_VALUE)
    78     if (pkt->pts != AV_NOPTS_VALUE)