Commit 3ec8d24a authored by Måns Rullgård's avatar Måns Rullgård

tiny_psnr: change error exit code from -1 to 1

Originally committed as revision 24149 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cd3cb048
...@@ -119,14 +119,14 @@ int main(int argc,char* argv[]){ ...@@ -119,14 +119,14 @@ int main(int argc,char* argv[]){
if(argc<3){ if(argc<3){
printf("tiny_psnr <file1> <file2> [<elem size> [<shift> [<skip bytes>]]]\n"); printf("tiny_psnr <file1> <file2> [<elem size> [<shift> [<skip bytes>]]]\n");
printf("WAV headers are skipped automatically.\n"); printf("WAV headers are skipped automatically.\n");
return -1; return 1;
} }
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]){ if(!f[0] || !f[1]){
fprintf(stderr, "Could not open input files.\n"); fprintf(stderr, "Could not open input files.\n");
return -1; return 1;
} }
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
......
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