diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-11 12:21:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-12 19:25:33 +0100 |
commit | 82d61a9ce3e26cb950709689f537ad1fdfa830b3 (patch) | |
tree | 8869800ee63dda5fa27955afe438b6aa53054644 /libavformat/flvdec.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/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 03b0c22f9d..7c3e5b06c6 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -799,7 +799,6 @@ static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size) if (!size) return 0; - av_freep(&st->codecpar->extradata); if ((ret = ff_get_extradata(s, st->codecpar, s->pb, size)) < 0) return ret; st->internal->need_context_update = 1; |