Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: source/libvpx/vpxstats.c

Issue 898943004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vpxenc.c ('k') | source/libvpx/webmdec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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!");
« no previous file with comments | « source/libvpx/vpxenc.c ('k') | source/libvpx/webmdec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698