Commit b97d21e4 authored by Martin Storsjö's avatar 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: 's avatarMartin Storsjö <martin@martin.st>
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment