Reemove remaining uses of deprecated AVERROR_NOTSUPP.
[ffmpeg.git] / libavformat / applehttpproto.c
index c7e12a9..64becf4 100644 (file)
@@ -181,7 +181,7 @@ static int applehttp_open(URLContext *h, const char *uri, int flags)
     const char *nested_url;
 
     if (flags & (URL_WRONLY | URL_RDWR))
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
 
     s = av_mallocz(sizeof(AppleHTTPContext));
     if (!s)