hedgewars/avwrapper/avwrapper.c
branch0.9.22
changeset 11620 3ff4c021a24a
parent 11603 06ecd48e65ef
child 11622 02657dddb5d8
equal deleted inserted replaced
11603:06ecd48e65ef 11620:3ff4c021a24a
    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 #define av_frame_alloc                      avcodec_alloc_frame
    67 #define av_frame_alloc                      avcodec_alloc_frame
    68 #define av_frame_free                       av_freep
    68 #define av_frame_free                       avcodec_free_frame
    69 #define av_packet_rescale_ts                rescale_ts
    69 #define av_packet_rescale_ts                rescale_ts
    70 
    70 
    71 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    71 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    72 {
    72 {
    73     if (pkt->pts != AV_NOPTS_VALUE)
    73     if (pkt->pts != AV_NOPTS_VALUE)