[FFmpeg-devel] [PATCH 15/41] avformat/redspark: use ff_alloc_extradata()
Paul B Mahol
onemda at gmail.com
Sun Oct 13 14:48:36 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavformat/redspark.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavformat/redspark.c b/libavformat/redspark.c
index 3963261..6d4c8c5 100644
--- a/libavformat/redspark.c
+++ b/libavformat/redspark.c
@@ -113,9 +113,7 @@ static int redspark_read_header(AVFormatContext *s)
goto fail;
}
- codec->extradata_size = 32 * codec->channels;
- codec->extradata = av_malloc(codec->extradata_size);
- if (!codec->extradata) {
+ if (ff_alloc_extradata(codec, 32 * codec->channels)) {
ret = AVERROR(ENOMEM);
goto fail;
}
--
1.7.11.2
More information about the ffmpeg-devel
mailing list