projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a53b545
)
Fix segfault with non existing input files.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Jul 2008 15:47:28 +0000
(15:47 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Jul 2008 15:47:28 +0000
(15:47 +0000)
Originally committed as revision 14369 to svn://svn.ffmpeg.org/ffmpeg/trunk
tests/tiny_psnr.c
patch
|
blob
|
history
diff --git
a/tests/tiny_psnr.c
b/tests/tiny_psnr.c
index 31a7a1b5e4c52ded69cfec567c41172d03674fdb..7a83dd59c50d579c003ee2a4ca0c9a3a154ae43f 100644
(file)
--- a/
tests/tiny_psnr.c
+++ b/
tests/tiny_psnr.c
@@
-120,6
+120,10
@@
int main(int argc,char* argv[]){
f[0]= fopen(argv[1], "rb");
f[1]= fopen(argv[2], "rb");
+ if(!f[0] || !f[1]){
+ fprintf(stderr, "couldnt open input files\n");
+ return -1;
+ }
fseek(f[shift<0], shift < 0 ? -shift : shift, SEEK_SET);
fseek(f[0],skip_bytes,SEEK_CUR);