aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nuv.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/nuv.c
parentc1e439d7e9abab3cebdc937636393b1656e095d9 (diff)
downloadffmpeg-82d61a9ce3e26cb950709689f537ad1fdfa830b3.tar.gz
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/nuv.c')
-rw-r--r--libavformat/nuv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 612f845b4b..bef0ae4860 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -83,10 +83,6 @@ static int get_codec_data(AVFormatContext *s, AVIOContext *pb, AVStream *vst,
avio_skip(pb, 6);
size = PKTSIZE(avio_rl32(pb));
if (vst && subtype == 'R') {
- if (vst->codecpar->extradata) {
- av_freep(&vst->codecpar->extradata);
- vst->codecpar->extradata_size = 0;
- }
if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0)
return ret;
size = 0;