[FFmpeg-cvslog] avformat/rtpdec_mpeg4: 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:48:35 2014 +0100| [0051e3c233357b243d598681c93bd5e8795b9104] | committer: Michael Niedermayer

avformat/rtpdec_mpeg4: 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=0051e3c233357b243d598681c93bd5e8795b9104
---

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

diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index 53921f2..6ab3e64 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -104,7 +104,7 @@ static int parse_fmtp_config(AVCodecContext *codec, char *value)
 {
     /* decode the hexa encoded parameter */
     int len = ff_hex_to_data(NULL, value);
-    av_free(codec->extradata);
+    av_freep(&codec->extradata);
     if (ff_alloc_extradata(codec, len))
         return AVERROR(ENOMEM);
     ff_hex_to_data(codec->extradata, value);



More information about the ffmpeg-cvslog mailing list