diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-11 14:21:07 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-12 21:25:33 +0300 |
commit | 82d61a9ce3e26cb950709689f537ad1fdfa830b3 (patch) | |
tree | 8869800ee63dda5fa27955afe438b6aa53054644 /libavformat/riffdec.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/riffdec.c')
-rw-r--r-- | libavformat/riffdec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 5523b31adc..070c42eee3 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -145,7 +145,6 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, size -= 22; } if (cbSize > 0) { - av_freep(&par->extradata); if (ff_get_extradata(s, par, pb, cbSize) < 0) return AVERROR(ENOMEM); size -= cbSize; @@ -158,7 +157,6 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, int nb_streams, i; size -= 4; - av_freep(&par->extradata); if (ff_get_extradata(s, par, pb, size) < 0) return AVERROR(ENOMEM); nb_streams = AV_RL16(par->extradata + 4); |