diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-10-13 14:30:59 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-10-14 00:13:38 +0400 |
commit | a807c68253b02cce8b9fbc87d7857c31d531a1ee (patch) | |
tree | e4097d5fd4a2cf8dc03c6f97ebfadc4d20ce8ac2 /libavformat/rsd.c | |
parent | 3fd79833e266aec2d77cf07092e8b1406fd307d4 (diff) |
avformat: use ff_alloc_extradata()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/rsd.c')
-rw-r--r-- | libavformat/rsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/rsd.c b/libavformat/rsd.c index 5b53cef9c0..37e544acb1 100644 --- a/libavformat/rsd.c +++ b/libavformat/rsd.c @@ -101,9 +101,7 @@ static int rsd_read_header(AVFormatContext *s) /* RSD3GADP is mono, so only alloc enough memory to store the coeff table for a single channel. */ - codec->extradata_size = 32; - codec->extradata = av_malloc(codec->extradata_size); - if (!codec->extradata) + if (ff_alloc_extradata(codec, 32)) return AVERROR(ENOMEM); start = avio_rl32(pb); |