diff --git a/plugins/VOIP/gui/VideoProcessor.cpp b/plugins/VOIP/gui/VideoProcessor.cpp index 0bc16dab0..12b54edf5 100644 --- a/plugins/VOIP/gui/VideoProcessor.cpp +++ b/plugins/VOIP/gui/VideoProcessor.cpp @@ -21,7 +21,7 @@ extern "C" { #include //#include -//#include +#include #include //#include //#include @@ -330,7 +330,6 @@ FFmpegVideo::FFmpegVideo() #else AVCodecID codec_id = AV_CODEC_ID_MPEG4; #endif - uint8_t endcode[] = { 0, 0, 1, 0xb7 }; /* find the mpeg1 video encoder */ encoding_codec = avcodec_find_encoder(codec_id); @@ -548,7 +547,7 @@ bool FFmpegVideo::encodeData(const QImage& image, uint32_t target_encoding_bitra AVPacket pkt ; av_init_packet(&pkt); -#if LIBAVCODEC_VERSION_MAJOR < 55 +#if LIBAVCODEC_VERSION_MAJOR < 54 pkt.size = avpicture_get_size(encoding_context->pix_fmt, encoding_context->width, encoding_context->height); pkt.data = (uint8_t*)av_malloc(pkt.size);