Skip to content

Commit c2c7a2d

Browse files
committed
lavc video: NVENC: update ver comparison
Current libavcodec version is still 60.22.100 so intra-refresh has been disabled since e457ab8 because the version is still not strictly greater (is equal). Using non-strict equality breaks the compilation with version 60.22.100 prior to FFmpeg commit e457ab8 (perhaps not a big deal). refer to GH-330
1 parent bb596e0 commit c2c7a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_compress/libavcodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ static void configure_nvenc(AVCodecContext *codec_ctx, struct setparam_param *pa
15391539
}
15401540

15411541
set_forced_idr(codec_ctx, 1);
1542-
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(60, 22, 100)
1542+
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 22, 100)
15431543
const bool new_ff = true;
15441544
#else
15451545
const bool new_ff = false;

0 commit comments

Comments
 (0)