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/wavdec.c | |
parent | c1e439d7e9abab3cebdc937636393b1656e095d9 (diff) | |
download | ffmpeg-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/wavdec.c')
-rw-r--r-- | libavformat/wavdec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index cfaf3d61fe..575c667452 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -220,7 +220,6 @@ static int wav_parse_xma2_tag(AVFormatContext *s, int64_t size, AVStream **st) avpriv_set_pts_info(*st, 64, 1, (*st)->codecpar->sample_rate); avio_seek(pb, -size, SEEK_CUR); - av_freep(&(*st)->codecpar->extradata); if ((ret = ff_get_extradata(s, (*st)->codecpar, pb, size)) < 0) return ret; |