]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/cache.c
mpegtsenc: do not reference the deprecated ffmpeg option 'vbsf' in a log message
[ffmpeg] / libavformat / cache.c
index d94cf5fbaca071262d0bf02a0b181e14b38404e1..3e60aea48fbea0041f924856b6b796ea35ffb577 100644 (file)
@@ -51,7 +51,6 @@ typedef struct Context {
 
 static int cache_open(URLContext *h, const char *arg, int flags)
 {
-    int access;
     const char *buffername;
     Context *c= h->priv_data;
 
@@ -64,7 +63,7 @@ static int cache_open(URLContext *h, const char *arg, int flags)
     }
 
     unlink(buffername);
-    av_free(buffername);
+    av_freep(&buffername);
 
     return ffurl_open(&c->inner, arg, flags, &h->interrupt_callback, NULL);
 }