mirror of https://git.ffmpeg.org/ffmpeg.git
minor optimization
Originally committed as revision 4128 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3c096ac791
commit
99cd59e58f
|
@ -1833,17 +1833,16 @@ static inline void unpack_coeffs(SnowContext *s, SubBand *b, SubBand * parent, i
|
|||
b->x_coeff[index].x=x;
|
||||
b->x_coeff[index++].coeff= v;
|
||||
}else{
|
||||
int max_run;
|
||||
run--;
|
||||
v=0;
|
||||
|
||||
if(y && parent){
|
||||
int max_run;
|
||||
|
||||
max_run= FFMIN(run, b->x_coeff[prev_index].x - x - 2);
|
||||
if(y) max_run= FFMIN(run, b->x_coeff[prev_index].x - x - 2);
|
||||
else max_run= FFMIN(run, w-x-1);
|
||||
if(parent)
|
||||
max_run= FFMIN(max_run, 2*parent->x_coeff[parent_index].x - x - 1);
|
||||
x+= max_run;
|
||||
run-= max_run;
|
||||
}
|
||||
x+= max_run;
|
||||
run-= max_run;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue