You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
minor simplificationn
Originally committed as revision 5610 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -385,12 +385,10 @@ static void intra_pred_lp_top(uint8_t *d,uint8_t *top,uint8_t *left,int stride)
|
|||||||
#undef LOWPASS
|
#undef LOWPASS
|
||||||
|
|
||||||
static inline void modify_pred(const int_fast8_t *mod_table, int *mode) {
|
static inline void modify_pred(const int_fast8_t *mod_table, int *mode) {
|
||||||
int newmode = mod_table[*mode];
|
*mode = mod_table[*mode];
|
||||||
if(newmode < 0) {
|
if(*mode < 0) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n");
|
av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n");
|
||||||
*mode = 0;
|
*mode = 0;
|
||||||
} else {
|
|
||||||
*mode = newmode;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user