Index: source/libvpx/vpxstats.c |
diff --git a/source/libvpx/vpxstats.c b/source/libvpx/vpxstats.c |
index 5f88f8d35975a38b388b6cc46f80c66fbb2f3c84..172d8937cdc3aabedc440b17f8e42715e36d07a1 100644 |
--- a/source/libvpx/vpxstats.c |
+++ b/source/libvpx/vpxstats.c |
@@ -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!"); |