Commit 63090842 authored by Michael Niedermayer's avatar Michael Niedermayer

av_samples_alloc_array_and_samples: Fix sizeof type.

Fixes CID1005317
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eda61abc
......@@ -212,7 +212,7 @@ int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int
{
int ret, nb_planes = av_sample_fmt_is_planar(sample_fmt) ? nb_channels : 1;
*audio_data = av_calloc(nb_planes, sizeof(*audio_data));
*audio_data = av_calloc(nb_planes, sizeof(**audio_data));
if (!*audio_data)
return AVERROR(ENOMEM);
ret = av_samples_alloc(*audio_data, linesize, nb_channels,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment