Commit eeaa742c authored by Michael Niedermayer's avatar Michael Niedermayer

1/0 fix for files with size=0

Originally committed as revision 3484 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9ebb8e11
......@@ -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