diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-03 02:09:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-04 03:10:10 +0100 |
commit | e31a7441559373d5c4aef4f359404c9dfcf16e42 (patch) | |
tree | 0a36c741ee631271dfd23852674abcd8d27512b9 /libavformat/rtpdec_mpeg4.c | |
parent | 0c8eb72ec5183909d87d8bba5c3b17337635c02a (diff) | |
download | ffmpeg-e31a7441559373d5c4aef4f359404c9dfcf16e42.tar.gz |
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 437fb1c87d7b4b0730db97d0858b4f39fffff2a9)
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 3 |
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); |