diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:47:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:47:54 +0100 |
commit | c116befc92d2e6678d0ca7657a6f7f59f9b9effe (patch) | |
tree | e286d3ee752241d009906b9d2e59cc35f77e2d83 /libavformat | |
parent | 89f0feadc2b339d1b9af7be04c75d4e54c3ef0cf (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavformat/xmv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |