mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Fix segfault with non existing input files.
Originally committed as revision 14369 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a53b545068
commit
e740c796d8
@ -120,6 +120,10 @@ int main(int argc,char* argv[]){
|
|||||||
|
|
||||||
f[0]= fopen(argv[1], "rb");
|
f[0]= fopen(argv[1], "rb");
|
||||||
f[1]= fopen(argv[2], "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[shift<0], shift < 0 ? -shift : shift, SEEK_SET);
|
||||||
|
|
||||||
fseek(f[0],skip_bytes,SEEK_CUR);
|
fseek(f[0],skip_bytes,SEEK_CUR);
|
||||||
|
Loading…
Reference in New Issue
Block a user