]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/concat.c
avdevice/decklink_dec: add support for 50/60 fps timecode
[ffmpeg] / libavformat / concat.c
index ea3bc1dfde8c1c8d49c5345d8f2ddc24f05fc755..418405dd50bf5acc2bf9659d91ccd39a4cee5253 100644 (file)
@@ -49,7 +49,7 @@ static av_cold int concat_close(URLContext *h)
     struct concat_nodes *nodes = data->nodes;
 
     for (i = 0; i != data->length; i++)
-        err |= ffurl_close(nodes[i].uc);
+        err |= ffurl_closep(&nodes[i].uc);
 
     av_freep(&data->nodes);
 
@@ -75,7 +75,6 @@ static av_cold int concat_open(URLContext *h, const char *uri, int flags)
         if (uri[i] == *AV_CAT_SEPARATOR) {
             /* integer overflow */
             if (++len == UINT_MAX / sizeof(*nodes)) {
-                av_freep(&h->priv_data);
                 return AVERROR(ENAMETOOLONG);
             }
         }