hedgewars/avwrapper/avwrapper.c
changeset 11618 bc83e11e5ee7
parent 11614 3c959df6638e
child 11619 dc0fc56c03ca
equal deleted inserted replaced
11617:aed348042a77 11618:bc83e11e5ee7
    68 #endif
    68 #endif
    69 
    69 
    70 #if LIBAVCODEC_VERSION_MAJOR < 56
    70 #if LIBAVCODEC_VERSION_MAJOR < 56
    71 #define av_frame_alloc                      avcodec_alloc_frame
    71 #define av_frame_alloc                      avcodec_alloc_frame
    72 #define av_frame_free                       av_freep
    72 #define av_frame_free                       av_freep
       
    73 #define av_frame_unref                      avcodec_get_frame_defaults
    73 #define av_packet_rescale_ts                rescale_ts
    74 #define av_packet_rescale_ts                rescale_ts
    74 
    75 
    75 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)
    76 {
    77 {
    77     if (pkt->pts != AV_NOPTS_VALUE)
    78     if (pkt->pts != AV_NOPTS_VALUE)