summaryrefslogtreecommitdiff
path: root/libavformat/oggparseopus.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-11 12:21:07 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-12 19:25:33 +0100
commit82d61a9ce3e26cb950709689f537ad1fdfa830b3 (patch)
tree8869800ee63dda5fa27955afe438b6aa53054644 /libavformat/oggparseopus.c
parentc1e439d7e9abab3cebdc937636393b1656e095d9 (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/oggparseopus.c')
-rw-r--r--libavformat/oggparseopus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c
index 38908dc2dd..56b53e74e8 100644
--- a/libavformat/oggparseopus.c
+++ b/libavformat/oggparseopus.c
@@ -63,7 +63,6 @@ static int opus_header(AVFormatContext *avf, int idx)
/*gain = AV_RL16(packet + 16);*/
/*channel_map = AV_RL8 (packet + 18);*/
- av_freep(&st->codecpar->extradata);
if ((ret = ff_alloc_extradata(st->codecpar, os->psize)) < 0)
return ret;