Skip to content

Commit f480db8

Browse files
committed
trivial: Tighten avcodec version check
1 parent beb18f6 commit f480db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libminiscope/videowriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void VideoWriter::initializeInternal()
244244
d->cctx->framerate = d->fps;
245245
d->cctx->workaround_bugs = FF_BUG_AUTODETECT;
246246

247-
#if LIBAVCODEC_VERSION_MAJOR >= 61
247+
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100)
248248
const enum AVPixelFormat *fmts = nullptr;
249249
ret = avcodec_get_supported_config(d->cctx, nullptr, AV_CODEC_CONFIG_PIX_FORMAT, 0, (const void **)&fmts, nullptr);
250250
if (ret < 0 || fmts == nullptr) {

0 commit comments

Comments
 (0)