[FFmpeg-cvslog] avformat/xmv: use av_freep() to avoid leaving stale extradata pointer

Michael Niedermayer git at videolan.org
Mon Dec 15 16:01:35 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 15 15:47:54 2014 +0100| [c116befc92d2e6678d0ca7657a6f7f59f9b9effe] | committer: Michael Niedermayer

avformat/xmv: use av_freep() to avoid leaving stale extradata pointer

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c116befc92d2e6678d0ca7657a6f7f59f9b9effe
---

 libavformat/xmv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
                 }



More information about the ffmpeg-cvslog mailing list