ref: f92c0b16888dfcc07829dc18c779ec84f69ab5d8
parent: cc7fac39d5e733e3cddd48a40072c0cfb1ec2689
author: Adrian Grange <[email protected]>
date: Fri Jan 30 05:42:29 EST 2015
Abort if firstpass file does not exist This fixes a crash if the firstpass file does not exist when doing a two-pass encode. Change-Id: I3a1a95d68d57125c63123d6208af7537f5a689a0
--- a/vpxstats.c
+++ b/vpxstats.c
@@ -41,6 +41,9 @@
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!");