Revision 5781d6d6

View differences:

libavcodec/cavs.c
385 385
#undef LOWPASS
386 386

  
387 387
static inline void modify_pred(const int_fast8_t *mod_table, int *mode) {
388
    int newmode = mod_table[*mode];
389
    if(newmode < 0) {
388
    *mode = mod_table[*mode];
389
    if(*mode < 0) {
390 390
        av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n");
391 391
        *mode = 0;
392
    } else {
393
        *mode = newmode;
394 392
    }
395 393
}
396 394

  

Also available in: Unified diff