[FFmpeg-soc] [soc]: r1457 - rv40/rv34.c

kostya subversion at mplayerhq.hu
Sun Nov 25 10:17:17 CET 2007


Author: kostya
Date: Sun Nov 25 10:17:17 2007
New Revision: 1457

Log:
Simplify expression

Modified:
   rv40/rv34.c

Modified: rv40/rv34.c
==============================================================================
--- rv40/rv34.c	(original)
+++ rv40/rv34.c	Sun Nov 25 10:17:17 2007
@@ -383,12 +383,8 @@ int ff_rv34_get_start_offset(GetBitConte
  */
 static inline RV34VLC* choose_vlc_set(int quant, int mod, int type)
 {
-    if(mod == 2){
-        if(quant < 19) quant += 10;
-        else if(quant < 26) quant += 5;
-    }
-    if(mod == 1)
-        if(quant < 26) quant += 5;
+    if(mod == 2 && quant < 19) quant += 10;
+    else if(mod && quant < 26) quant += 5;
     return type ? &inter_vlcs[rv34_quant_to_vlc_set[1][av_clip(quant, 0, 30)]]
                 : &intra_vlcs[rv34_quant_to_vlc_set[0][av_clip(quant, 0, 30)]];
 }



More information about the FFmpeg-soc mailing list