diff --git a/libminiscope/videowriter.cpp b/libminiscope/videowriter.cpp index ee5242c..068050a 100644 --- a/libminiscope/videowriter.cpp +++ b/libminiscope/videowriter.cpp @@ -244,7 +244,7 @@ void VideoWriter::initializeInternal() d->cctx->framerate = d->fps; d->cctx->workaround_bugs = FF_BUG_AUTODETECT; -#if LIBAVCODEC_VERSION_MAJOR >= 61 +#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100) const enum AVPixelFormat *fmts = nullptr; ret = avcodec_get_supported_config(d->cctx, nullptr, AV_CODEC_CONFIG_PIX_FORMAT, 0, (const void **)&fmts, nullptr); if (ret < 0 || fmts == nullptr) {