aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_mpeg4.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-10-09 14:24:36 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-10-09 14:24:36 +0200
commit8dd0650fe67398d78214687b1a15e614239ff593 (patch)
treec5534885639b7415c96197db12f762d94dfa2814 /libavformat/rtpdec_mpeg4.c
parent3fbda309e553428211b79ea0ca128b3aaf0f9033 (diff)
downloadffmpeg-8dd0650fe67398d78214687b1a15e614239ff593.tar.gz
rtpdec_mpeg4: au_headers is a single array, simple av_free is enough
Fixes CID700204.
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r--libavformat/rtpdec_mpeg4.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index d3e0754253..cc92c88636 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -93,15 +93,7 @@ static PayloadContext *new_context(void)
static void free_context(PayloadContext * data)
{
- int i;
- 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->au_headers);
av_free(data->mode);
av_free(data);
}