Commit 5ad0470b authored by michael's avatar michael

Fix segfault with non existing input files.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14369 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 03376224
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment