Use url_fopen error code when opening input file
handle the AVERROR_NOENT error case in print_error Originally committed as revision 8977 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -138,6 +138,9 @@ void print_error(const char *filename, int err)
|
||||
case AVERROR_NOMEM:
|
||||
fprintf(stderr, "%s: memory allocation error occured\n", filename);
|
||||
break;
|
||||
case AVERROR_NOENT:
|
||||
fprintf(stderr, "%s: no such file or directory\n", filename);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "%s: Error while opening file\n", filename);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user