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:
9ebb8e1
)
1/0 fix for files with size=0
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Sep 2004 15:40:50 +0000
(15:40 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Sep 2004 15:40:50 +0000
(15:40 +0000)
Originally committed as revision 3484 to svn://svn.ffmpeg.org/ffmpeg/trunk
tests/tiny_psnr.c
patch
|
blob
|
history
diff --git
a/tests/tiny_psnr.c
b/tests/tiny_psnr.c
index
572dd27
..
be129fa
100644
(file)
--- a/
tests/tiny_psnr.c
+++ b/
tests/tiny_psnr.c
@@
-120,6
+120,7
@@
int main(int argc,char* argv[]){
}
}
+ if(!i) i=1;
dev= int_sqrt((sse*F*F)/i);
if(sse)
psnr= (log16(256*256*255*255LL*i/sse)*284619LL*F + (1<<31)) / (1LL<<32);