mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
committed by
Mans Rullgard
parent
dc75d6dbf2
commit
437fb1c87d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user