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/oggparseogm.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/oggparseogm.c')
-rw-r--r-- | libavformat/oggparseogm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c index f25efb8c2a..469b229995 100644 --- a/libavformat/oggparseogm.c +++ b/libavformat/oggparseogm.c @@ -109,7 +109,6 @@ ogm_header(AVFormatContext *s, int idx) size -= 52; if (bytestream2_get_bytes_left(&p) < size) return AVERROR_INVALIDDATA; - av_freep(&st->codecpar->extradata); if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0) return ret; bytestream2_get_buffer(&p, st->codecpar->extradata, st->codecpar->extradata_size); |