Fix samples to bytes relation.
[ffmpeg.git] / tests / tiny_psnr.c
index 2a19f4d..b017eac 100644 (file)
@@ -141,7 +141,7 @@ int main(int argc,char* argv[]){
     printf("stddev:%3d.%02d PSNR:%2d.%02d bytes:%d\n",
         (int)(dev/F), (int)(dev%F),
         (int)(psnr/F), (int)(psnr%F),
     printf("stddev:%3d.%02d PSNR:%2d.%02d bytes:%d\n",
         (int)(dev/F), (int)(dev%F),
         (int)(psnr/F), (int)(psnr%F),
-        i);
+        i*len);
     return 0;
 }
 
     return 0;
 }