]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_asf.c
Merge commit '2b1324bd167553f49736e4eaa94f96da9982925e'
[ffmpeg] / libavformat / rtpdec_asf.c
index 2c09fda10b7dc96041dfa54fa080b80476e9ac27..09f214a71c9c90b707fc2c0b81955de36e003da7 100644 (file)
@@ -139,12 +139,12 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
         ret = avformat_open_input(&rt->asf_ctx, "", iformat, &opts);
         av_dict_free(&opts);
         if (ret < 0) {
-            av_free(buf);
+            av_free(pb.buffer);
             return ret;
         }
         av_dict_copy(&s->metadata, rt->asf_ctx->metadata, 0);
         rt->asf_pb_pos = avio_tell(&pb);
-        av_free(buf);
+        av_free(pb.buffer);
         rt->asf_ctx->pb = NULL;
     }
     return ret;