提交 b97d21e4 编写于 作者: M Martin Storsjö

rtpdec_h264: Free old extradata before clearing the pointer

This avoids memory leaks if there actually was some extradata
set before.
Signed-off-by: NMartin Storsjö <martin@martin.st>
上级 3c148703
......@@ -114,7 +114,7 @@ static int sdp_parse_fmtp_config_h264(AVStream *stream,
}
} else if (!strcmp(attr, "sprop-parameter-sets")) {
codec->extradata_size = 0;
codec->extradata = NULL;
av_freep(&codec->extradata);
while (*value) {
char base64packet[1024];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册