]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/asfdec_o.c
lavf: add V as a video stream specifier which is not an attached picture
[ffmpeg] / libavformat / asfdec_o.c
index adc7f69bfb317fd24923a3c604a0810a53d9d379..fa00813a811b558d05b5d9b1ffe597b4616d1499 100644 (file)
@@ -590,8 +590,10 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
                          buflen);
         if (!strcmp(name, "AspectRatioX") || !strcmp(name, "AspectRatioY")) {
             ret = asf_store_aspect_ratio(s, st_num, name, type);
-            if (ret < 0)
-                return ret;
+            if (ret < 0) {
+                av_freep(&name);
+                break;
+            }
         } else {
             if (st_num < ASF_MAX_STREAMS) {
                 if ((ret = process_metadata(s, name, name_len, val_len, type,