Skip to content

Commit

Permalink
trivial: Tighten avcodec version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Nov 10, 2024
1 parent beb18f6 commit f480db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libminiscope/videowriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f480db8

Please sign in to comment.