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

Git pushed a commit to branch master
in repository ffmpeg.

commit 6777d5cd489c889e474146f074050a8c4fa02eae
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Feb 20 19:49:38 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Sat Feb 21 12:48:50 2026 +0100

    avcodec/vvc/inter: Remove always-false/true checks
    
    derive_weight() is only called when pred_flag is PF_BI,
    which only happens in B slices.
    
    Reviewed-by: Frank Plowman <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/vvc/inter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vvc/inter.c b/libavcodec/vvc/inter.c
index 64a9dd1e46..98997837ae 100644
--- a/libavcodec/vvc/inter.c
+++ b/libavcodec/vvc/inter.c
@@ -224,8 +224,8 @@ static int derive_weight(int *denom, int *w0, int *w1, int 
*o0, int *o1,
     const VVCPPS *pps         = fc->ps.pps;
     const VVCSH *sh           = &lc->sc->sh;
     const int bcw_idx         = mvf->bcw_idx;
-    const int weight_flag     = (IS_P(sh->r) && 
pps->r->pps_weighted_pred_flag) ||
-                                  (IS_B(sh->r) && 
pps->r->pps_weighted_bipred_flag && !dmvr_flag);
+    av_assert2(IS_B(sh->r));
+    const int weight_flag     = pps->r->pps_weighted_bipred_flag && !dmvr_flag;
     if ((!weight_flag && !bcw_idx) || (bcw_idx && lc->cu->ciip_flag))
         return 0;
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to