diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-04 16:30:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-04 16:30:14 +0000 |
commit | 5781d6d6e8d27657afd6eb42f3f404b27be476f8 (patch) | |
tree | 6ca4991072c9bcc44ed27617b7274d9b78d8856a /libavcodec | |
parent | 66d0ad26057a8ddc2b354210d3e7b9c7bf0666a0 (diff) | |
download | ffmpeg-5781d6d6e8d27657afd6eb42f3f404b27be476f8.tar.gz |
minor simplificationn
Originally committed as revision 5610 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cavs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index d4402106db..2ad7d9482f 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -385,12 +385,10 @@ static void intra_pred_lp_top(uint8_t *d,uint8_t *top,uint8_t *left,int stride) #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; } } |