projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7fac3
)
Abort if firstpass file does not exist
author
Adrian Grange
<agrange@google.com>
Fri, 30 Jan 2015 18:42:29 +0000
(10:42 -0800)
committer
Adrian Grange
<agrange@google.com>
Fri, 30 Jan 2015 18:42:29 +0000
(10:42 -0800)
This fixes a crash if the firstpass file does not
exist when doing a two-pass encode.
Change-Id: I3a1a95d68d57125c63123d6208af7537f5a689a0
vpxstats.c
patch
|
blob
|
history
diff --git
a/vpxstats.c
b/vpxstats.c
index
5f88f8d
..
172d893
100644
(file)
--- a/
vpxstats.c
+++ b/
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!");