diff options
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); |