[FFmpeg-soc] [soc]: r5180 - als/alsdec.c
thilo.borgmann
subversion at mplayerhq.hu
Wed Aug 19 23:14:25 CEST 2009
Author: thilo.borgmann
Date: Wed Aug 19 23:14:25 2009
New Revision: 5180
Log:
Zero raw_buffer during allocation.
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Wed Aug 19 23:12:42 2009 (r5179)
+++ als/alsdec.c Wed Aug 19 23:14:25 2009 (r5180)
@@ -1031,8 +1031,8 @@ static av_cold int decode_init(AVCodecCo
}
// allocate raw and carried sample buffer
- if (!(ctx->raw_buffer = av_malloc(sizeof(int64_t) *
- avctx->channels * channel_size))) {
+ if (!(ctx->raw_buffer = av_mallocz(sizeof(int64_t) *
+ avctx->channels * channel_size))) {
av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
decode_end(avctx);
return AVERROR_NOMEM;
More information about the FFmpeg-soc
mailing list