Commit dbef1386 authored by michael's avatar michael

1/0 fix for files with size=0


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3484 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3e9a4ff5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment