[FFmpeg-devel] [PATCH 17/41] avformat/vqf: use ff_alloc_extradata()
Paul B Mahol
onemda at gmail.com
Sun Oct 13 14:48:38 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavformat/vqf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index be7d8a0..4cd0a6d 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -220,9 +220,8 @@ static int vqf_read_header(AVFormatContext *s)
avpriv_set_pts_info(st, 64, size, st->codec->sample_rate);
/* put first 12 bytes of COMM chunk in extradata */
- if (!(st->codec->extradata = av_malloc(12 + FF_INPUT_BUFFER_PADDING_SIZE)))
+ if (ff_alloc_extradata(st->codec, 12))
return AVERROR(ENOMEM);
- st->codec->extradata_size = 12;
memcpy(st->codec->extradata, comm_chunk, 12);
ff_metadata_conv_ctx(s, NULL, vqf_metadata_conv);
--
1.7.11.2
More information about the ffmpeg-devel
mailing list