mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fabs is better then abs for floats ...
Originally committed as revision 5422 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b3aaa7bea6
commit
2fefd23b96
@ -911,7 +911,7 @@ static int init_pass2(MpegEncContext *s)
|
||||
av_free(qscale);
|
||||
av_free(blured_qscale);
|
||||
|
||||
if(abs(expected_bits/all_available_bits - 1.0) > 0.01 ){
|
||||
if(fabs(expected_bits/all_available_bits - 1.0) > 0.01 ){
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Error: 2pass curve failed to converge\n");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user