]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/md5proto.c
lavf: rename avf_sdp_create to av_sdp_create.
[ffmpeg] / libavformat / md5proto.c
index ae3e96de72a3cf1f61cfd5fdaf8465861a3329d2..8b811ec3d672f28e81b46e52dd7591fd38ff82ba 100644 (file)
@@ -36,7 +36,7 @@ static int md5_open(URLContext *h, const char *filename, int flags)
         return -1;
     }
 
-    if (flags != URL_WRONLY)
+    if (flags != AVIO_WRONLY)
         return AVERROR(EINVAL);
 
     av_md5_init(h->priv_data);
@@ -65,11 +65,11 @@ static int md5_close(URLContext *h)
     av_strstart(filename, "md5:", &filename);
 
     if (*filename) {
-        err = ffurl_open(&out, filename, URL_WRONLY);
+        err = ffurl_open(&out, filename, AVIO_WRONLY);
         if (err)
             return err;
         err = ffurl_write(out, buf, i*2+1);
-        url_close(out);
+        ffurl_close(out);
     } else {
         if (fwrite(buf, 1, i*2+1, stdout) < i*2+1)
             err = AVERROR(errno);