On Sun, 20 Oct 2013 22:04:16 +0200, Luca Barbato <[email protected]> wrote:
> When the protocol is missing the ffurl_open should return
> AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
> 
> Bug-Id: 577
> CC: [email protected]
> ---
>  libavformat/avio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/avio.c b/libavformat/avio.c
> index ad39e6f..689d4a1 100644
> --- a/libavformat/avio.c
> +++ b/libavformat/avio.c
> @@ -197,7 +197,7 @@ int ffurl_alloc(URLContext **puc, const char *filename, 
> int flags,
>              return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
>      }
>      *puc = NULL;
> -    return AVERROR(ENOENT);
> +    return AVERROR_PROTOCOL_NOT_FOUND;
>  }
>  
>  int ffurl_open(URLContext **puc, const char *filename, int flags,
> -- 
> 1.8.3.2
> 

Ok

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to