Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-11 14:21:07 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-12 21:25:33 +0300
commit82d61a9ce3e26cb950709689f537ad1fdfa830b3 (patch)
tree8869800ee63dda5fa27955afe438b6aa53054644 /libavformat/avidec.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/avidec.c')
-rw-r--r--libavformat/avidec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 21871feb8d..ae0c227bb9 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -770,7 +770,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
st->codecpar->extradata_size = size - 10 * 4;
if (st->codecpar->extradata) {
av_log(s, AV_LOG_WARNING, "New extradata in strf chunk, freeing previous one.\n");
- av_freep(&st->codecpar->extradata);
}
ret = ff_get_extradata(s, st->codecpar, pb,
st->codecpar->extradata_size);
@@ -932,7 +931,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (size<(1<<30)) {
if (st->codecpar->extradata) {
av_log(s, AV_LOG_WARNING, "New extradata in strd chunk, freeing previous one.\n");
- av_freep(&st->codecpar->extradata);
}
if ((ret = ff_get_extradata(s, st->codecpar, pb, size)) < 0)
return ret;