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

Git pushed a commit to branch master
in repository ffmpeg.

commit 2f6d7021a8fbc93648605e8e59c41dea0c3f4fbd
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Tue Nov 10 11:49:37 2026 +0100
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Wed Nov 11 10:18:22 2026 +0000

    avcodec/dxva2_h264: write RefPicList positions directly
    
    Without the Intel ClearVideo workaround the slice RefPicList entries are
    positions in RefFrameList, or 127 when get_refpic_index() does not find
    the reference. Write them into bPicEntry directly and leave
    fill_picture_entry() for surface indices.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavcodec/dxva2_h264.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index dd9dccbf8c..9184ba8889 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -253,13 +253,12 @@ static void fill_slice_long(AVCodecContext *avctx, 
DXVA_Slice_H264_Long *slice,
             if (list < sl->list_count && i < sl->ref_count[list]) {
                 const H264Picture *r = sl->ref_list[list][i].parent;
                 unsigned plane;
-                unsigned index;
+                unsigned index = ff_dxva2_get_surface_index(avctx, ctx, r->f, 
0);
+                unsigned flag = sl->ref_list[list][i].reference == 
PICT_BOTTOM_FIELD;
                 if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & 
FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)
-                    index = ff_dxva2_get_surface_index(avctx, ctx, r->f, 0);
+                    fill_picture_entry(&slice->RefPicList[list][i], index, 
flag);
                 else
-                    index = get_refpic_index(pp, 
ff_dxva2_get_surface_index(avctx, ctx, r->f, 0));
-                fill_picture_entry(&slice->RefPicList[list][i], index,
-                                   sl->ref_list[list][i].reference == 
PICT_BOTTOM_FIELD);
+                    slice->RefPicList[list][i].bPicEntry = 
get_refpic_index(pp, index) | (flag << 7);
                 for (plane = 0; plane < 3; plane++) {
                     int w, o;
                     if (plane == 0 && sl->pwt.luma_weight_flag[list]) {

-- 
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