--- gmic-1.5.2.2/src/CImg.h +++ gmic-1.5.2.2/src/CImg.h @@ -318,6 +318,7 @@ extern "C" { #include "avformat.h" #include "avcodec.h" +#include "libavutil/mathematics.h" #include "swscale.h" } #endif @@ -44795,7 +44796,11 @@ AVPacket pkt; int got_packet; av_init_packet(&pkt); +#if LIBAVCODEC_VERSION_INTcoded_frame->pts,c->time_base,video_str->time_base); if (c->coded_frame->key_frame) pkt.flags|=AV_PKT_FLAG_KEY;