On Fri, 13 Dec 2013, Luca Barbato wrote:
On 13/12/13 23:01, Martin Storsjö wrote:
From: Michael Niedermayer <michae...@gmx.at>
---
libavformat/sdp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 186f83b..23bb172 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -532,6 +532,7 @@ static char *sdp_write_media_attributes(char *buff, int
size, AVCodecContext *c,
break;
default:
av_log(c, AV_LOG_ERROR, "Unsupported pixel format.\n");
+ av_free(config);
return NULL;
}
first check for the pix_format and then format the config maybe?
That would probably work as well.
// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel