[FFmpeg-cvslog] avutil/opt: fix flags check on non x86
Michael Niedermayer
git at videolan.org
Tue Oct 29 21:37:33 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 29 21:07:45 2013 +0100| [15b1b0887466f5c9ab3185a8fb62ebe54c0ff01b] | committer: Michael Niedermayer
avutil/opt: fix flags check on non x86
This should fix several fate failures
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15b1b0887466f5c9ab3185a8fb62ebe54c0ff01b
---
libavutil/opt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index e00bd74..46f60aa 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -101,7 +101,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int
}
if (o->type == AV_OPT_TYPE_FLAGS) {
double d = num*intnum/den;
- if (d < -1.5 || d > 0xFFFFFFFF+0.5 || (lrint(d*256) & 255)) {
+ if (d < -1.5 || d > 0xFFFFFFFF+0.5 || (llrint(d*256) & 255)) {
av_log(obj, AV_LOG_ERROR,
"Value %f for parameter '%s' is not a valid set of 32bit integer flags\n",
num*intnum/den, o->name);
More information about the ffmpeg-cvslog
mailing list