OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daed32f
)
infinte recursion fix
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 18 Oct 2004 03:02:48 +0000
(
03:02
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 18 Oct 2004 03:02:48 +0000
(
03:02
+0000)
Originally committed as revision 3606 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
21d885d
..
2d2fc14
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-843,7
+843,7
@@
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
assert(b >=0);
assert(rnd >=0 && rnd<=5 && rnd!=4);
- if(a<0) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));
+ if(a<0
&& a != INT64_MIN
) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));
if(rnd==AV_ROUND_NEAR_INF) r= c/2;
else if(rnd&1) r= c-1;