diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-23 12:41:54 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-23 12:41:54 +0000 |
commit | 8d00c562e8309a22112739e029c456758a32d20b (patch) | |
tree | 88d84aba5275c1159a2f58672090a697b83f17be /libavcodec/faandct.c | |
parent | b4c3816cfaee19638f0d8b71a31fced84c34236c (diff) | |
download | ffmpeg-8d00c562e8309a22112739e029c456758a32d20b.tar.gz |
4.9-RC FreeBSD doesnt like lrint() so change to lrintf(), not that bsd supports that but we emulate it ...
Originally committed as revision 2421 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faandct.c')
-rw-r--r-- | libavcodec/faandct.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c index a0de180607..a7b9102cfe 100644 --- a/libavcodec/faandct.c +++ b/libavcodec/faandct.c @@ -135,12 +135,12 @@ void ff_faandct(DCTELEM * data) tmp11= tmp1 + tmp2; tmp12= tmp1 - tmp2; - data[8*0 + i]= lrint(SCALE(8*0 + i) * (tmp10 + tmp11)); - data[8*4 + i]= lrint(SCALE(8*4 + i) * (tmp10 - tmp11)); + data[8*0 + i]= lrintf(SCALE(8*0 + i) * (tmp10 + tmp11)); + data[8*4 + i]= lrintf(SCALE(8*4 + i) * (tmp10 - tmp11)); z1= (tmp12 + tmp13)* A1; - data[8*2 + i]= lrint(SCALE(8*2 + i) * (tmp13 + z1)); - data[8*6 + i]= lrint(SCALE(8*6 + i) * (tmp13 - z1)); + data[8*2 + i]= lrintf(SCALE(8*2 + i) * (tmp13 + z1)); + data[8*6 + i]= lrintf(SCALE(8*6 + i) * (tmp13 - z1)); tmp10= tmp4 + tmp5; tmp11= tmp5 + tmp6; @@ -154,9 +154,9 @@ void ff_faandct(DCTELEM * data) z11= tmp7 + z3; z13= tmp7 - z3; - data[8*5 + i]= lrint(SCALE(8*5 + i) * (z13 + z2)); - data[8*3 + i]= lrint(SCALE(8*3 + i) * (z13 - z2)); - data[8*1 + i]= lrint(SCALE(8*1 + i) * (z11 + z4)); - data[8*7 + i]= lrint(SCALE(8*7 + i) * (z11 - z4)); + data[8*5 + i]= lrintf(SCALE(8*5 + i) * (z13 + z2)); + data[8*3 + i]= lrintf(SCALE(8*3 + i) * (z13 - z2)); + data[8*1 + i]= lrintf(SCALE(8*1 + i) * (z11 + z4)); + data[8*7 + i]= lrintf(SCALE(8*7 + i) * (z11 - z4)); } } |