]> granicus.if.org Git - libvpx/commitdiff
Fix missing write to opsnr in internal stats
authorSarah Parker <sarahparker@google.com>
Sat, 3 Sep 2016 19:15:32 +0000 (12:15 -0700)
committerSarah Parker <sarahparker@google.com>
Sat, 3 Sep 2016 19:15:32 +0000 (12:15 -0700)
Change-Id: I21c8ad0b5ed7f8d843cae45c18f5727bceb8f859

vp9/encoder/vp9_encoder.c

index 93726f0ee735e613e2dc34e9bd924868bd908cfb..55103627e8fab5fd55eae491762c33fda2982c04 100644 (file)
@@ -1985,10 +1985,9 @@ void vp9_remove_compressor(VP9_COMP *cpi) {
           SNPRINT2(results, "\t%7.3f", cpi->worst_consistency);
         }
 
-        SNPRINT(headings, "\tTime\tRcErr\tAbsErr");
-        SNPRINT2(results, "\t%7.3f", total_encode_time);
-        SNPRINT2(results, "\t%7.3f", rate_err);
-        SNPRINT2(results, "\t%7.3f", fabs(rate_err));
+        fprintf(f, "%s\t    Time\tRcErr\tAbsErr\n", headings);
+        fprintf(f, "%s\t%8.0f\t%7.2f\t%7.2f\n", results, total_encode_time,
+                rate_err, fabs(rate_err));
       }
 
       fclose(f);