From 437fb1c87d7b4b0730db97d0858b4f39fffff2a9 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Thu, 3 Feb 2011 02:09:36 +0100 Subject: Remove a few if (p) av_free(p) forms Signed-off-by: Mans Rullgard --- libavformat/rtpdec_mpeg4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat/rtpdec_mpeg4.c') diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 137dbd2613..5498d1c46b 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -111,8 +111,7 @@ static int parse_fmtp_config(AVCodecContext * codec, char *value) { /* decode the hexa encoded parameter */ int len = ff_hex_to_data(NULL, value); - if (codec->extradata) - av_free(codec->extradata); + av_free(codec->extradata); codec->extradata = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE); if (!codec->extradata) return AVERROR(ENOMEM); -- cgit v1.2.3