diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-20 22:55:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-21 00:26:17 +0200 |
commit | 63090842df76bcbc2d276feb94c1713b9f7a2a28 (patch) | |
tree | 1b708b003f244cb12dbf597c923f92d577e32b77 /libavutil/samplefmt.c | |
parent | eda61abc846bb4a37fbfeb8f3215ced19da7d6e0 (diff) | |
download | ffmpeg-63090842df76bcbc2d276feb94c1713b9f7a2a28.tar.gz |
av_samples_alloc_array_and_samples: Fix sizeof type.
Fixes CID1005317
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/samplefmt.c')
-rw-r--r-- | libavutil/samplefmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c index 445009745c..08ecc83467 100644 --- a/libavutil/samplefmt.c +++ b/libavutil/samplefmt.c @@ -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, |