rtpdec_h264: Free old extradata before clearing the pointer
This avoids memory leaks if there actually was some extradata set before. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
3c148703f6
commit
b97d21e4d6
@ -114,7 +114,7 @@ static int sdp_parse_fmtp_config_h264(AVStream *stream,
|
|||||||
}
|
}
|
||||||
} else if (!strcmp(attr, "sprop-parameter-sets")) {
|
} else if (!strcmp(attr, "sprop-parameter-sets")) {
|
||||||
codec->extradata_size = 0;
|
codec->extradata_size = 0;
|
||||||
codec->extradata = NULL;
|
av_freep(&codec->extradata);
|
||||||
|
|
||||||
while (*value) {
|
while (*value) {
|
||||||
char base64packet[1024];
|
char base64packet[1024];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user