diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp index 107f9ae..ff380d5 100644 --- a/k9author/k9avidecode.cpp +++ b/k9author/k9avidecode.cpp @@ -216,7 +216,7 @@ void k9AviDecode::readFrame(double _seconds) { // Is this a packet from the video stream? if (packet->stream_index==m_videoStream) { // Decode video frame -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 37, 100) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 106, 100) int ret = avcodec_receive_frame(m_CodecCtx, m_Frame); if (ret == 0) frameFinished = 1; @@ -300,7 +300,7 @@ void k9AviDecode::close() { av_close_input_file(m_FormatCtx); #endif -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55, 63, 100) +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100) avcodec_free_context(&m_CodecCtx); #endif