diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-01-06 19:52:56 +0100 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-01-06 19:52:56 +0100 |
| commit | 2545db7e500bfda7dea99ceac24768d3008648a3 (patch) | |
| tree | 2297f07762eb745a9f1cab826adc9f402adca596 /src/encoder | |
| parent | 997d4ae922e79a6828257bd22b2279a76503b1d2 (diff) | |
Fix incorrect padding when amd gpu doesn't support padding fix for hevc
Diffstat (limited to 'src/encoder')
| -rw-r--r-- | src/encoder/video/vaapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoder/video/vaapi.c b/src/encoder/video/vaapi.c index b32d8d3..81c03c8 100644 --- a/src/encoder/video/vaapi.c +++ b/src/encoder/video/vaapi.c @@ -245,8 +245,8 @@ static bool gsr_video_encoder_vaapi_start(gsr_video_encoder *encoder, AVCodecCon video_codec_context->width = FFALIGN(video_codec_context->width, 2); video_codec_context->height = FFALIGN(video_codec_context->height, 2); } else { - video_codec_context->width = FFALIGN(video_codec_context->width, 256); - video_codec_context->height = FFALIGN(video_codec_context->height, 256); + video_codec_context->width = FFALIGN(video_codec_context->width, 64); + video_codec_context->height = FFALIGN(video_codec_context->height, 16); } } else if(self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD && video_codec_context->codec_id == AV_CODEC_ID_AV1) { // TODO: Dont do this for VCN 5 and forward which should fix this hardware bug |
