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:
@ -417,8 +417,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
|
||||
|
||||
if (!fmt || must_open_file) {
|
||||
/* if no file needed do not try to open one */
|
||||
if (url_fopen(pb, filename, URL_RDONLY) < 0) {
|
||||
err = AVERROR_IO;
|
||||
if ((err=url_fopen(pb, filename, URL_RDONLY)) < 0) {
|
||||
goto fail;
|
||||
}
|
||||
file_opened = 1;
|
||||
|
Reference in New Issue
Block a user