Remove a few if (p) av_free(p) forms

Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Clément Bœsch
2011-02-03 02:09:36 +01:00
committed by Mans Rullgard
parent dc75d6dbf2
commit 437fb1c87d
9 changed files with 20 additions and 41 deletions

View File

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