QTfrontend/util/LibavInteraction.cpp
changeset 11373 ac423fd2b9a3
parent 11299 64ad779be7bf
child 11857 d7227dc3b397
equal deleted inserted replaced
11372:d94f65b66c60 11373:ac423fd2b9a3
    31 #include <QComboBox>
    31 #include <QComboBox>
    32 
    32 
    33 #include "HWApplication.h"
    33 #include "HWApplication.h"
    34 
    34 
    35 // compatibility section
    35 // compatibility section
       
    36 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 8, 0)
       
    37 #define av_codec_is_encoder(x)          x->encode
       
    38 #endif
       
    39 
    36 #if LIBAVCODEC_VERSION_MAJOR < 55
    40 #if LIBAVCODEC_VERSION_MAJOR < 55
    37 #define av_codec_is_encoder(x)          x->encode
       
    38 #define AVCodecID                       CodecID
    41 #define AVCodecID                       CodecID
    39 #endif
    42 #endif
    40 
    43 
    41 #if LIBAVFORMAT_VERSION_MAJOR < 54
    44 #if LIBAVFORMAT_VERSION_MAJOR < 54
    42 #define avformat_find_stream_info(x, y) av_find_stream_info(x)
    45 #define avformat_find_stream_info(x, y) av_find_stream_info(x)