aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_mpeg4.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 02:09:36 +0100
committerMans Rullgard <mans@mansr.com>2011-02-03 01:37:55 +0000
commit437fb1c87d7b4b0730db97d0858b4f39fffff2a9 (patch)
tree1febadd59886886b0ad55bb8796a22160866bec3 /libavformat/rtpdec_mpeg4.c
parentdc75d6dbf2af3c03b33d3159e1dadccf22c076ea (diff)
downloadffmpeg-437fb1c87d7b4b0730db97d0858b4f39fffff2a9.tar.gz
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r--libavformat/rtpdec_mpeg4.c3
1 files changed, 1 insertions, 2 deletions
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);