[SCM] libav/experimental: 1/0 fix for files with size=0
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:41:32 UTC 2013
The following commit has been merged in the experimental branch:
commit eeaa742c3e77077628f9d4e87b5faf24f2b7e183
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Mon Sep 20 15:40:50 2004 +0000
1/0 fix for files with size=0
Originally committed as revision 3484 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index 572dd27..be129fa 100644
--- 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list