OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79f25e
)
bessel: check that the function terminates as expected by av_assert2().
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 8 Aug 2012 23:42:42 +0000
(
01:42
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 8 Aug 2012 23:44:15 +0000
(
01:44
+0200)
A clear abort is better than wrong output and a possible crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample.c
patch
|
blob
|
history
diff --git
a/libswresample/resample.c
b/libswresample/resample.c
index
cef2a81
..
7a5c7d7
100644
(file)
--- a/
libswresample/resample.c
+++ b/
libswresample/resample.c
@@
-78,6
+78,7
@@
static double bessel(double x){
lastv=v;
t *= x*inv[i];
v += t;
+ av_assert2(i<99);
}
return v;
}