Skip to content

Commit 0d52f02

Browse files
committed
fixed hevc_nvenc AppImage not working on Pascals
The bug is induced by upstream FFmpeg changes, in particular: FFmpeg/FFmpeg@28680e2 Supposedly "disabled" is the only supported b_ref_mode for Pascal cards and it fails if not set (set otherwise). We don't use B-frames at all so it can be disabled by default, anyways. closes GH-273
1 parent dd5fda2 commit 0d52f02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video_compress/libavcodec.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,7 @@ static void configure_nvenc(AVCodecContext *codec_ctx, struct setparam_param *pa
18761876
if (ret != 0) {
18771877
log_msg(LOG_LEVEL_WARNING, "[lavc] Unable to set zero latency operation (no reordering delay).\n");
18781878
}
1879+
check_av_opt_set<const char *>(codec_ctx->priv_data, "b_ref_mode", "disabled", 0);
18791880
codec_ctx->rc_max_rate = codec_ctx->bit_rate;
18801881
codec_ctx->rc_buffer_size = codec_ctx->rc_max_rate / param->desc.fps;
18811882
}

0 commit comments

Comments
 (0)