# HG changeset patch # User michael # Date 1152030614 0 # Node ID f5f2d05b54acbfa6c52b9e0841405b6a52dc74c6 # Parent 75ab0c53742a4295a152429ec560af484acca06a minor simplificationn diff -r 75ab0c53742a -r f5f2d05b54ac cavs.c --- 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; } }