diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-11 14:21:07 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-12 21:25:33 +0300 |
commit | 82d61a9ce3e26cb950709689f537ad1fdfa830b3 (patch) | |
tree | 8869800ee63dda5fa27955afe438b6aa53054644 /libavformat/rtpdec_qdm2.c | |
parent | c1e439d7e9abab3cebdc937636393b1656e095d9 (diff) |
avformat: Don't free old extradata before ff_alloc/get_extradata
These functions already free it themselves before they allocate the new
extradata.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rtpdec_qdm2.c')
-rw-r--r-- | libavformat/rtpdec_qdm2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_qdm2.c b/libavformat/rtpdec_qdm2.c index a6a746becb..1eec2da5b4 100644 --- a/libavformat/rtpdec_qdm2.c +++ b/libavformat/rtpdec_qdm2.c @@ -105,7 +105,7 @@ static int qdm2_parse_config(PayloadContext *qdm, AVStream *st, case 4: /* stream with extradata */ if (item_len < 30) return AVERROR_INVALIDDATA; - av_freep(&st->codecpar->extradata); + ret = ff_alloc_extradata(st->codecpar, 26 + item_len); if (ret < 0) { return ret; |