summaryrefslogtreecommitdiffstats
path: root/libavformat/xmv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:47:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:47:54 +0100
commitc116befc92d2e6678d0ca7657a6f7f59f9b9effe (patch)
treee286d3ee752241d009906b9d2e59cc35f77e2d83 /libavformat/xmv.c
parent89f0feadc2b339d1b9af7be04c75d4e54c3ef0cf (diff)
downloadffmpeg-streaming-c116befc92d2e6678d0ca7657a6f7f59f9b9effe.zip
ffmpeg-streaming-c116befc92d2e6678d0ca7657a6f7f59f9b9effe.tar.gz
avformat/xmv: use av_freep() to avoid leaving stale extradata pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/xmv.c')
-rw-r--r--libavformat/xmv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 6eac4d2..01817dc 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -381,7 +381,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
av_assert0(xmv->video.stream_index < s->nb_streams);
if (vst->codec->extradata_size < 4) {
- av_free(vst->codec->extradata);
+ av_freep(&vst->codec->extradata);
ff_alloc_extradata(vst->codec, 4);
}
OpenPOWER on IntegriCloud