[FFmpeg-cvslog] av_samples_alloc_array_and_samples: Fix sizeof type.

Michael Niedermayer git at videolan.org
Sun Apr 21 00:27:44 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 20 22:55:47 2013 +0200| [63090842df76bcbc2d276feb94c1713b9f7a2a28] | committer: Michael Niedermayer

av_samples_alloc_array_and_samples: Fix sizeof type.

Fixes CID1005317
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63090842df76bcbc2d276feb94c1713b9f7a2a28
---

 libavutil/samplefmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index 4450097..08ecc83 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,



More information about the ffmpeg-cvslog mailing list