changeset 2080:f778bf13d4a5 libavformat

Use url_fopen error code when opening input file handle the AVERROR_NOENT error case in print_error
author benoit
date Thu, 10 May 2007 13:25:33 +0000
parents c5a3a1f884a4
children 040bdd013062
files utils.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;