# HG changeset patch # User benoit # Date 1178803533 0 # Node ID f778bf13d4a57fc080e06efac6a228ea62204b5e # Parent c5a3a1f884a4f3b007b322ca3141315164b68d20 Use url_fopen error code when opening input file handle the AVERROR_NOENT error case in print_error diff -r c5a3a1f884a4 -r f778bf13d4a5 utils.c --- a/utils.c Thu May 10 10:51:00 2007 +0000 +++ b/utils.c Thu May 10 13:25:33 2007 +0000 @@ -417,8 +417,7 @@ 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;