exptab=av_malloc_array((n/2),sizeof(*exptab)); 7979 8080 for(i=0;i<(n/2);i++) { 8181 alpha=2*M_PI*(float)i/ (float)n; @@ -304,10 +304,10 @@ int main(int argc, char **argv) 304304 } 305305 306306 fft_size=1<<fft_nbits; ...
Unofficial FFmpeg with added custom native Visual Studio project build tools. FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video. - avcodec/dsddec: use av_malloc_array() · wwwxxxwwwwxxxx/FFmpeg@b20d6cf
ctx->size=avpicture_get_size(avctx->pix_fmt, avctx->width,avctx->height); ctx->val=av_malloc(ctx->size*sizeof(*ctx->val)); ctx->val=av_malloc_array(ctx->size,sizeof(*ctx->val)); if(!ctx->val) { av_log(avctx,AV_LOG_ERROR,"Could not allocate values buffer.\n"); ...
Projects Security Insights Additional navigation options Browse files michaelni committedApr 25, 2014 avcodec/mdct_template: Use av_malloc_array() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> master · 4.2.r92858 3.1.1.r80902 1 parent681a5b8commit92cc6d5 ...
if((q->mlt_window=av_malloc_array(mlt_size,sizeof(*q->mlt_window)))==0) 223223 returnAVERROR(ENOMEM); 224224 225225 /* Initialize the MLT window: simple sine window. */ 0commit comments Comments 0(0) Pleasesign into comment.
avcodec/avpacket: use av_malloc_array() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> master · 4.2.r92858 3.1.1.r80902 1 parente4c180ccommit33c9bb9 File tree libavcodec avpacket.c 1 file changed +1 -1 lines changed
roq_cell *results4 = av_malloc(sizeof(roq_cell)*MAX_CBS_4x4*4); uint8_t *yuvClusters=av_malloc(sizeof(int)*max*6*4); int *points = av_malloc(max*6*4*sizeof(int)); uint8_t *yuvClusters=av_malloc_array(max, sizeof(int)*6*4); ...
avcodec/faxcompr: use av_malloc_array() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> master · 4.2.r92858 3.1.1.r80902 1 parent36053aecommit713e62e File tree libavcodec faxcompr.c 1 file changed +2 -2 lines changed
s->tile=av_malloc_array(s->numXtiles,s->numYtiles*sizeof(Jpeg2000Tile)); if(!s->tile) returnAVERROR(ENOMEM); for(tileno=0,tiley=0;tileynumYtiles;tiley++) for(tilex=0;tilexnumXtiles;tilex++,tileno++){ Jpeg2000Tile*tile=s->tile+tileno; tile->comp=...
SliceThreadContext*p=avctx->internal->thread_ctx; 268268 p->thread_count=avctx->thread_count; 269- p->entries=av_mallocz(count*sizeof(int)); 269+ p->entries=av_mallocz_array(count,sizeof(int)); 270270 271271 if(!p->entries) { ...