From c116befc92d2e6678d0ca7657a6f7f59f9b9effe Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Dec 2014 15:47:54 +0100 Subject: avformat/xmv: use av_freep() to avoid leaving stale extradata pointer Signed-off-by: Michael Niedermayer --- libavformat/xmv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/xmv.c') diff --git a/libavformat/xmv.c b/libavformat/xmv.c index 6eac4d21e8..01817dc937 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); } -- cgit v1.2.3