]> granicus.if.org Git - libvpx/blobdiff - vpxstats.c
Merge changes I2fe52bfb,I5e5084eb
[libvpx] / vpxstats.c
index 5f88f8d35975a38b388b6cc46f80c66fbb2f3c84..172d8937cdc3aabedc440b17f8e42715e36d07a1 100644 (file)
@@ -41,6 +41,9 @@ int stats_open_file(stats_io_t *stats, const char *fpf, int pass) {
 
     stats->file = fopen(fpf, "rb");
 
+    if (stats->file == NULL)
+      fatal("First-pass stats file does not exist!");
+
     if (fseek(stats->file, 0, SEEK_END))
       fatal("First-pass stats file must be seekable!");