summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_mpeg4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:48:35 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 15:48:35 +0100
commit0051e3c233357b243d598681c93bd5e8795b9104 (patch)
tree92c709c36ec09505ea11176e8b3928fdfce4acc1 /libavformat/rtpdec_mpeg4.c
parentc116befc92d2e6678d0ca7657a6f7f59f9b9effe (diff)
avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale extradata pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r--libavformat/rtpdec_mpeg4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index 53921f2e97..6ab3e64789 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);