rtpdec_mpeg4: au_headers is a single array, simple av_free is enough
Fixes CID700204.
This commit is contained in:
parent
3fbda309e5
commit
8dd0650fe6
@ -93,15 +93,7 @@ static PayloadContext *new_context(void)
|
|||||||
|
|
||||||
static void free_context(PayloadContext * data)
|
static void free_context(PayloadContext * data)
|
||||||
{
|
{
|
||||||
int i;
|
av_free(data->au_headers);
|
||||||
for (i = 0; i < data->nb_au_headers; i++) {
|
|
||||||
/* according to rtp_parse_mp4_au, we treat multiple
|
|
||||||
* au headers as one, so nb_au_headers is always 1.
|
|
||||||
* loop anyway in case this changes.
|
|
||||||
* (note: changes done carelessly might lead to a double free)
|
|
||||||
*/
|
|
||||||
av_free(&data->au_headers[i]);
|
|
||||||
}
|
|
||||||
av_free(data->mode);
|
av_free(data->mode);
|
||||||
av_free(data);
|
av_free(data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user