QTfrontend/util/LibavInteraction.cpp
branch0.9.22
changeset 11600 7ee2697a5267
parent 11296 2f812d4513d1
child 11852 d7227dc3b397
equal deleted inserted replaced
11599:49c82c3e3836 11600:7ee2697a5267
    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)