git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d525ef
)
Silence "comparison of unsigned expression >= 0 is always true" warning.
author
Eli Friedman
<eli.friedman@gmail.com>
Sat, 3 Jul 2010 17:06:12 +0000
(17:06 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 3 Jul 2010 17:06:12 +0000
(17:06 +0000)
Patch by Eli Friedman, eli d friedman a gmail
Originally committed as revision 24022 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/mathematics.c
patch
|
blob
|
history
diff --git
a/libavutil/mathematics.c
b/libavutil/mathematics.c
index
00b81f1
..
c6851cb
100644
(file)
--- a/
libavutil/mathematics.c
+++ b/
libavutil/mathematics.c
@@
-78,7
+78,7
@@
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
int64_t r=0;
assert(c > 0);
assert(b >=0);
- assert(
rnd >=0 &&
rnd<=5 && rnd!=4);
+ assert(
(unsigned)
rnd<=5 && rnd!=4);
if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));