changeset 3407:f5f2d05b54ac libavcodec

minor simplificationn
author michael
date Tue, 04 Jul 2006 16:30:14 +0000
parents 75ab0c53742a
children 73c648ae1c74
files cavs.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/cavs.c	Tue Jul 04 15:40:09 2006 +0000
+++ b/cavs.c	Tue Jul 04 16:30:14 2006 +0000
@@ -385,12 +385,10 @@
 #undef LOWPASS
 
 static inline void modify_pred(const int_fast8_t *mod_table, int *mode) {
-    int newmode = mod_table[*mode];
-    if(newmode < 0) {
+    *mode = mod_table[*mode];
+    if(*mode < 0) {
         av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n");
         *mode = 0;
-    } else {
-        *mode = newmode;
     }
 }