This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 2e92077e22699b581a107565de0297dd5e7762fa
Author:     Wu Jianhua <[email protected]>
AuthorDate: Thu Aug 27 05:50:00 2026 +0800
Commit:     jianhuaw <[email protected]>
CommitDate: Sat Sep 5 11:59:49 2026 +0000

    avcodec/d3d12va_decode: use coded width and height
    
    HEVC decoders write the full coded surface before applying the conformance 
window, so D3D12VA must allocate coded_width and coded_height rather than the 
visible frame dimensions.
    
    SPS:
    pic_width_in_luma_samples  = 3840
    pic_height_in_luma_samples = 2176
    conformance_window_flag    = 1
    conf_win_bottom_offset     = 8
    
    For 4:2:0, the bottom offset crops 16 luma samples, yielding a 3840x2160 
display frame. Allocating the visible 3840x2160 surface failed on NVIDIA 
D3D12VA; using 3840x2176 decoded all 744 frames on an RTX 5080 with zero decode 
errors.
    
    Signed-off-by: Wu Jianhua <[email protected]>
---
 libavcodec/d3d12va_decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c
index 3a461c7fe0..538d9a4f6e 100644
--- a/libavcodec/d3d12va_decode.c
+++ b/libavcodec/d3d12va_decode.c
@@ -396,8 +396,8 @@ int ff_d3d12va_common_frame_params(AVCodecContext *avctx, 
AVBufferRef *hw_frames
     case AV_PIX_FMT_YUV420P12: frames_ctx->sw_format = AV_PIX_FMT_P012; break;
     default:                   frames_ctx->sw_format = AV_PIX_FMT_NV12; break;
     }
-    frames_ctx->width     = avctx->width;
-    frames_ctx->height    = avctx->height;
+    frames_ctx->width     = avctx->coded_width;
+    frames_ctx->height    = avctx->coded_height;
 
     return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to