Set frame size to video codec context size, nicer rgb to nv12

This commit is contained in:
dec05eba
2024-03-07 22:53:04 +01:00
parent 0d89378021
commit 3d9a706528
10 changed files with 46 additions and 22 deletions

View File

@@ -349,6 +349,9 @@ static int gsr_capture_nvfbc_start(gsr_capture *cap, AVCodecContext *video_codec
video_codec_context->height = tracking_height & ~1;
}
frame->width = video_codec_context->width;
frame->height = video_codec_context->height;
if(!ffmpeg_create_cuda_contexts(cap_nvfbc, video_codec_context))
goto error_cleanup;