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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4c64a8a986163e534a10e81c6945537238609410
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Apr 3 16:34:07 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Wed Apr 8 20:59:52 2026 +0200

    avcodec/rv34: Remove pointless has_ac variable
    
    Reviewed-by: Lynne <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/rv34.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 90456010da..1f189377c9 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -310,8 +310,6 @@ static inline void decode_subblock3(int16_t *dst, int 
flags, GetBitContext *gb,
 static int rv34_decode_block(int16_t *dst, GetBitContext *gb, const RV34VLC 
*rvlc,
                              int fc, int sc, int q_dc, int q_ac1, int q_ac2)
 {
-    int has_ac = 1;
-
     int flags = get_vlc2(gb, rvlc->first_pattern[fc], 9, 2);
 
     int pattern = flags & 0x7;
@@ -324,7 +322,6 @@ static int rv34_decode_block(int16_t *dst, GetBitContext 
*gb, const RV34VLC *rvl
         decode_subblock1(dst, flags, gb, rvlc->coefficient, q_dc);
         if (!pattern)
             return 0;
-        has_ac = 0;
     }
 
     if(pattern & 4){
@@ -339,7 +336,7 @@ static int rv34_decode_block(int16_t *dst, GetBitContext 
*gb, const RV34VLC *rvl
         flags = get_vlc2(gb, rvlc->third_pattern[sc], 9, 2);
         decode_subblock(dst + 4*2+2, flags, 0, gb, rvlc->coefficient, q_ac2);
     }
-    return has_ac | pattern;
+    return 1;
 }
 
 /**

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

Reply via email to