[FFmpeg-cvslog] avfilter/buffer: Use av_malloc_array()
Michael Niedermayer
git at videolan.org
Mon May 12 12:32:13 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 12 12:24:41 2014 +0200| [b9cce9ee5c7b9e37ee6e4e8c7b3dc65c9d3cee97] | committer: Michael Niedermayer
avfilter/buffer: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9cce9ee5c7b9e37ee6e4e8c7b3dc65c9d3cee97
---
libavfilter/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index 885e9ca..0327952 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -79,7 +79,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
if (ref->extended_data && ref->extended_data != ref->data) {
int nb_channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout);
- if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) *
+ if (!(ret->extended_data = av_malloc_array(sizeof(*ret->extended_data),
nb_channels))) {
av_freep(&ret->audio);
av_freep(&ret);
More information about the ffmpeg-cvslog
mailing list