av_malloc_array 380 doc/examples/transcoding.c filter_ctx = av_malloc_array(ifmt_ctx->nb_streams, sizeof(*filter_ctx)); av_malloc_array 2742 fftools/ffmpeg.c avc = av_malloc_array(nb_output_files, sizeof(*avc)); av_malloc_array 3189 fftools/ffmpeg.c pts = av_malloc_array(size, sizeof(*pts)); av_malloc_array 1160 fftools/ffplay.c s->rdft_data = av_malloc_array(nb_freq, 4 *sizeof(*s->rdft_data)); av_malloc_array 3426 fftools/ffprobe.c read_intervals = av_malloc_array(n, sizeof(*read_intervals)); av_malloc_array 375 libavcodec/ac3dec.c s->downmix_coeffs[0] = av_malloc_array(2 * AC3_MAX_CHANNELS, av_malloc_array 118 libavcodec/ac3enc_float.c window = av_malloc_array(n, sizeof(*window)); av_malloc_array 473 libavcodec/aic.c ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS av_malloc_array 372 libavcodec/alsdec.c if (!(sconf->chan_pos = av_malloc_array(avctx->channels, sizeof(*sconf->chan_pos)))) av_malloc_array 2027 libavcodec/alsdec.c ctx->quant_cof = av_malloc_array(num_buffers, sizeof(*ctx->quant_cof)); av_malloc_array 2028 libavcodec/alsdec.c ctx->lpc_cof = av_malloc_array(num_buffers, sizeof(*ctx->lpc_cof)); av_malloc_array 2029 libavcodec/alsdec.c ctx->quant_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, av_malloc_array 2031 libavcodec/alsdec.c ctx->lpc_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, av_malloc_array 2033 libavcodec/alsdec.c ctx->lpc_cof_reversed_buffer = av_malloc_array(sconf->max_order, av_malloc_array 2051 libavcodec/alsdec.c ctx->const_block = av_malloc_array(num_buffers, sizeof(*ctx->const_block)); av_malloc_array 2052 libavcodec/alsdec.c ctx->shift_lsbs = av_malloc_array(num_buffers, sizeof(*ctx->shift_lsbs)); av_malloc_array 2053 libavcodec/alsdec.c ctx->opt_order = av_malloc_array(num_buffers, sizeof(*ctx->opt_order)); av_malloc_array 2054 libavcodec/alsdec.c ctx->store_prev_samples = av_malloc_array(num_buffers, sizeof(*ctx->store_prev_samples)); av_malloc_array 2056 libavcodec/alsdec.c ctx->ltp_lag = av_malloc_array(num_buffers, sizeof(*ctx->ltp_lag)); av_malloc_array 2057 libavcodec/alsdec.c ctx->ltp_gain = av_malloc_array(num_buffers, sizeof(*ctx->ltp_gain)); av_malloc_array 2058 libavcodec/alsdec.c ctx->ltp_gain_buffer = av_malloc_array(num_buffers * 5, sizeof(*ctx->ltp_gain_buffer)); av_malloc_array 2078 libavcodec/alsdec.c ctx->reverted_channels = av_malloc_array(num_buffers, av_malloc_array 2097 libavcodec/alsdec.c ctx->prev_raw_samples = av_malloc_array(sconf->max_order, sizeof(*ctx->prev_raw_samples)); av_malloc_array 2099 libavcodec/alsdec.c ctx->raw_samples = av_malloc_array(avctx->channels, sizeof(*ctx->raw_samples)); av_malloc_array 2102 libavcodec/alsdec.c ctx->acf = av_malloc_array(avctx->channels, sizeof(*ctx->acf)); av_malloc_array 2103 libavcodec/alsdec.c ctx->shift_value = av_malloc_array(avctx->channels, sizeof(*ctx->shift_value)); av_malloc_array 2104 libavcodec/alsdec.c ctx->last_shift_value = av_malloc_array(avctx->channels, sizeof(*ctx->last_shift_value)); av_malloc_array 2105 libavcodec/alsdec.c ctx->last_acf_mantissa = av_malloc_array(avctx->channels, sizeof(*ctx->last_acf_mantissa)); av_malloc_array 2108 libavcodec/alsdec.c ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, sizeof(*ctx->larray)); av_malloc_array 2109 libavcodec/alsdec.c ctx->nbits = av_malloc_array(ctx->cur_frame_length, sizeof(*ctx->nbits)); av_malloc_array 2142 libavcodec/alsdec.c ctx->crc_buffer = av_malloc_array(ctx->cur_frame_length * av_malloc_array 235 libavcodec/ass_split.c int *order = av_malloc_array(FF_ARRAY_ELEMS(section->fields), sizeof(*order)); av_malloc_array 467 libavcodec/avpacket.c pkt->side_data = av_malloc_array(i, sizeof(*pkt->side_data)); av_malloc_array 297 libavcodec/bitstream.c buf = av_malloc_array((nb_codes + 1), sizeof(VLCcode)); av_malloc_array 696 libavcodec/cbs.c units = av_malloc_array(frag->nb_units*2 + 1, sizeof(*units)); av_malloc_array 342 libavcodec/cfhd.c av_malloc_array(height * stride, sizeof(*s->plane[i].idwt_tmp)); av_malloc_array 181 libavcodec/cinepakenc.c if (!(s->codebook_input = av_malloc_array((avctx->pix_fmt == AV_PIX_FMT_RGB24 ? 6 : 4) * (avctx->width * avctx->height) >> 2, sizeof(*s->codebook_input)))) av_malloc_array 184 libavcodec/cinepakenc.c if (!(s->codebook_closest = av_malloc_array((avctx->width * avctx->height) >> 2, sizeof(*s->codebook_closest)))) av_malloc_array 207 libavcodec/cinepakenc.c if (!(s->mb = av_malloc_array(mb_count, sizeof(mb_info)))) av_malloc_array 59 libavcodec/cngenc.c p->samples32 = av_malloc_array(avctx->frame_size, sizeof(*p->samples32)); av_malloc_array 60 libavcodec/cngenc.c p->ref_coef = av_malloc_array(p->order, sizeof(*p->ref_coef)); av_malloc_array 230 libavcodec/cook.c if ((q->mlt_window = av_malloc_array(mlt_size, sizeof(*q->mlt_window))) == 0) av_malloc_array 194 libavcodec/dct.c s->csc2 = av_malloc_array(n / 2, sizeof(FFTSample)); av_malloc_array 1300 libavcodec/decode.c choices = av_malloc_array(n + 1, sizeof(*choices)); av_malloc_array 307 libavcodec/diracdec.c s->plane[i].idwt.tmp = av_malloc_array((w+16), 2 << s->pshift); av_malloc_array 314 libavcodec/diracdec.c s->sbsplit = av_malloc_array(sbwidth, sbheight); av_malloc_array 315 libavcodec/diracdec.c s->blmotion = av_malloc_array(sbwidth, sbheight * 16 * sizeof(*s->blmotion)); av_malloc_array 339 libavcodec/diracdec.c s->edge_emu_buffer_base = av_malloc_array(stride, MAX_BLOCKSIZE); av_malloc_array 341 libavcodec/diracdec.c s->mctmp = av_malloc_array((stride+MAX_BLOCKSIZE), (h+MAX_BLOCKSIZE) * sizeof(*s->mctmp)); av_malloc_array 342 libavcodec/diracdec.c s->mcscratch = av_malloc_array(stride, MAX_BLOCKSIZE); av_malloc_array 52 libavcodec/dsddec.c s = av_malloc_array(sizeof(DSDContext), avctx->channels); av_malloc_array 430 libavcodec/dxva2.c cfg_list = av_malloc_array(cfg_count, sizeof(D3D11_VIDEO_DECODER_CONFIG)); av_malloc_array 482 libavcodec/dxva2.c guid_list = av_malloc_array(guid_count, sizeof(*guid_list)); av_malloc_array 346 libavcodec/elbg.c int *temp_points = av_malloc_array(dim, (numpoints/8)*sizeof(int)); av_malloc_array 379 libavcodec/elbg.c int *dist_cb = av_malloc_array(numpoints, sizeof(int)); av_malloc_array 380 libavcodec/elbg.c int *size_part = av_malloc_array(numCB, sizeof(int)); av_malloc_array 381 libavcodec/elbg.c cell *list_buffer = av_malloc_array(numpoints, sizeof(cell)); av_malloc_array 389 libavcodec/elbg.c elbg->cells = av_malloc_array(numCB, sizeof(cell *)); av_malloc_array 390 libavcodec/elbg.c elbg->utility = av_malloc_array(numCB, sizeof(int)); av_malloc_array 393 libavcodec/elbg.c elbg->utility_inc = av_malloc_array(numCB, sizeof(*elbg->utility_inc)); av_malloc_array 394 libavcodec/elbg.c elbg->scratchbuf = av_malloc_array(5*dim, sizeof(int)); av_malloc_array 142 libavcodec/error_resilience.c int16_t (*col )[4] = av_malloc_array(stride, h*sizeof( int16_t)*4); av_malloc_array 143 libavcodec/error_resilience.c uint32_t (*dist)[4] = av_malloc_array(stride, h*sizeof(uint32_t)*4); av_malloc_array 392 libavcodec/faxcompr.c runs = av_malloc_array(runsize, sizeof(runs[0])); av_malloc_array 393 libavcodec/faxcompr.c ref = av_malloc_array(runsize, sizeof(ref[0])); av_malloc_array 77 libavcodec/ffv1.c p->state = av_malloc_array(p->context_count, CONTEXT_SIZE * av_malloc_array 144 libavcodec/ffv1.c fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES * av_malloc_array 146 libavcodec/ffv1.c fs->sample_buffer32 = av_malloc_array((fs->width + 6), 3 * MAX_PLANES * av_malloc_array 171 libavcodec/ffv1.c f->initial_states[i] = av_malloc_array(f->context_count[i], av_malloc_array 278 libavcodec/ffv1dec.c pdst->state = av_malloc_array(CONTEXT_SIZE, psrc->context_count); av_malloc_array 281 libavcodec/ffv1dec.c pdst->vlc_state = av_malloc_array(sizeof(*pdst->vlc_state), psrc->context_count); av_malloc_array 792 libavcodec/ffv1enc.c uint8_t (*best_state)[256] = av_malloc_array(256, 256); av_malloc_array 87 libavcodec/filter_units_bsf.c list = av_malloc_array(count, sizeof(*list)); av_malloc_array 471 libavcodec/h2645_parse.c nal->skipped_bytes_pos = av_malloc_array(nal->skipped_bytes_pos_size, sizeof(*nal->skipped_bytes_pos)); av_malloc_array 1371 libavcodec/hevc_ps.c pps->col_bd = av_malloc_array(pps->num_tile_columns + 1, sizeof(*pps->col_bd)); av_malloc_array 1372 libavcodec/hevc_ps.c pps->row_bd = av_malloc_array(pps->num_tile_rows + 1, sizeof(*pps->row_bd)); av_malloc_array 1373 libavcodec/hevc_ps.c pps->col_idxX = av_malloc_array(sps->ctb_width, sizeof(*pps->col_idxX)); av_malloc_array 1379 libavcodec/hevc_ps.c pps->column_width = av_malloc_array(pps->num_tile_columns, sizeof(*pps->column_width)); av_malloc_array 1380 libavcodec/hevc_ps.c pps->row_height = av_malloc_array(pps->num_tile_rows, sizeof(*pps->row_height)); av_malloc_array 1415 libavcodec/hevc_ps.c pps->ctb_addr_rs_to_ts = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->ctb_addr_rs_to_ts)); av_malloc_array 1416 libavcodec/hevc_ps.c pps->ctb_addr_ts_to_rs = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->ctb_addr_ts_to_rs)); av_malloc_array 1417 libavcodec/hevc_ps.c pps->tile_id = av_malloc_array(pic_area_in_ctbs, sizeof(*pps->tile_id)); av_malloc_array 1418 libavcodec/hevc_ps.c pps->min_tb_addr_zs_tab = av_malloc_array((sps->tb_mask+2) * (sps->tb_mask+2), sizeof(*pps->min_tb_addr_zs_tab)); av_malloc_array 1463 libavcodec/hevc_ps.c pps->tile_pos_rs = av_malloc_array(tile_id, sizeof(*pps->tile_pos_rs)); av_malloc_array 1633 libavcodec/hevc_ps.c pps->column_width = av_malloc_array(pps->num_tile_columns, sizeof(*pps->column_width)); av_malloc_array 1634 libavcodec/hevc_ps.c pps->row_height = av_malloc_array(pps->num_tile_rows, sizeof(*pps->row_height)); av_malloc_array 105 libavcodec/hevcdec.c s->skip_flag = av_malloc_array(sps->min_cb_height, sps->min_cb_width); av_malloc_array 106 libavcodec/hevcdec.c s->tab_ct_depth = av_malloc_array(sps->min_cb_height, sps->min_cb_width); av_malloc_array 110 libavcodec/hevcdec.c s->cbf_luma = av_malloc_array(sps->min_tb_width, sps->min_tb_height); av_malloc_array 112 libavcodec/hevcdec.c s->is_pcm = av_malloc_array(sps->min_pu_width + 1, sps->min_pu_height + 1); av_malloc_array 117 libavcodec/hevcdec.c s->tab_slice_address = av_malloc_array(pic_size_in_ctb, av_malloc_array 119 libavcodec/hevcdec.c s->qp_y_tab = av_malloc_array(pic_size_in_ctb, av_malloc_array 865 libavcodec/hevcdec.c sh->entry_point_offset = av_malloc_array(sh->num_entry_point_offsets, sizeof(unsigned)); av_malloc_array 866 libavcodec/hevcdec.c sh->offset = av_malloc_array(sh->num_entry_point_offsets, sizeof(int)); av_malloc_array 867 libavcodec/hevcdec.c sh->size = av_malloc_array(sh->num_entry_point_offsets, sizeof(int)); av_malloc_array 2569 libavcodec/hevcdec.c int *ret = av_malloc_array(s->sh.num_entry_point_offsets + 1, sizeof(int)); av_malloc_array 2570 libavcodec/hevcdec.c int *arg = av_malloc_array(s->sh.num_entry_point_offsets + 1, sizeof(int)); av_malloc_array 60 libavcodec/huffman.c HeapElem *h = av_malloc_array(sizeof(*h), stats_size); av_malloc_array 61 libavcodec/huffman.c int *up = av_malloc_array(sizeof(*up) * 2, stats_size); av_malloc_array 62 libavcodec/huffman.c uint8_t *len = av_malloc_array(sizeof(*len) * 2, stats_size); av_malloc_array 63 libavcodec/huffman.c uint16_t *map= av_malloc_array(sizeof(*map), stats_size); av_malloc_array 413 libavcodec/j2kenc.c s->tile = av_malloc_array(s->numXtiles, s->numYtiles * sizeof(Jpeg2000Tile)); av_malloc_array 946 libavcodec/j2kenc.c prec->cblk[cblkno].passes = av_malloc_array(JPEG2000_MAX_PASSES, sizeof (*prec->cblk[cblkno].passes)); av_malloc_array 561 libavcodec/jpeg2000dwt.c s->f_linebuf = av_malloc_array((maxlen + 12), sizeof(*s->f_linebuf)); av_malloc_array 566 libavcodec/jpeg2000dwt.c s->i_linebuf = av_malloc_array((maxlen + 12), sizeof(*s->i_linebuf)); av_malloc_array 571 libavcodec/jpeg2000dwt.c s->i_linebuf = av_malloc_array((maxlen + 6), sizeof(*s->i_linebuf)); av_malloc_array 154 libavcodec/libmp3lame.c s->samples_flt[ch] = av_malloc_array(avctx->frame_size, av_malloc_array 536 libavcodec/libvpxenc.c ctx->ts_layer_flags = av_malloc_array(VPX_TS_MAX_PERIODICITY, sizeof(*ctx->ts_layer_flags)); av_malloc_array 1467 libavcodec/libvpxenc.c planes[VPX_PLANE_U] = av_malloc_array(stride[VPX_PLANE_U], height); av_malloc_array 1468 libavcodec/libvpxenc.c planes[VPX_PLANE_V] = av_malloc_array(stride[VPX_PLANE_V], height); av_malloc_array 961 libavcodec/libx264.c x4->reordered_opaque = av_malloc_array(x4->nb_reordered_opaque, av_malloc_array 310 libavcodec/ljpegenc.c s->scratch = av_malloc_array(avctx->width + 1, sizeof(*s->scratch)); av_malloc_array 68 libavcodec/mdct15.c s->pfa_prereindex = av_malloc_array(15 * l_ptwo, sizeof(*s->pfa_prereindex)); av_malloc_array 72 libavcodec/mdct15.c s->pfa_postreindex = av_malloc_array(15 * l_ptwo, sizeof(*s->pfa_postreindex)); av_malloc_array 278 libavcodec/mdct15.c s->tmp = av_malloc_array(len, 2 * sizeof(*s->tmp)); av_malloc_array 282 libavcodec/mdct15.c s->twiddle_exptab = av_malloc_array(s->len4, sizeof(*s->twiddle_exptab)); av_malloc_array 64 libavcodec/mdct_template.c s->tcos = av_malloc_array(n/2, sizeof(FFTSample)); av_malloc_array 65 libavcodec/mjpegenc.c m->huff_buffer = av_malloc_array(num_codes, sizeof(MJpegHuffmanCode)); av_malloc_array 587 libavcodec/mlpenc.c ctx->lpc_sample_buffer = av_malloc_array(size, sizeof(int32_t)); av_malloc_array 596 libavcodec/mlpenc.c ctx->major_scratch_buffer = av_malloc_array(size, sizeof(int32_t)); av_malloc_array 603 libavcodec/mlpenc.c ctx->major_inout_buffer = av_malloc_array(size, sizeof(int32_t)); av_malloc_array 118 libavcodec/mpegutils.c AVMotionVector *mvs = av_malloc_array(mb_width * mb_height, 2 * 4 * sizeof(AVMotionVector)); av_malloc_array 672 libavcodec/mss12.c c->mask = av_malloc_array(c->mask_stride, avctx->height); av_malloc_array 656 libavcodec/mss4.c c->prev_dc[i] = av_malloc_array(c->dc_stride[i], sizeof(**c->prev_dc)); av_malloc_array 169 libavcodec/pgssubdec.c rect->data[0] = av_malloc_array(rect->w, rect->h); av_malloc_array 94 libavcodec/pixlet.c ctx->filter[0] = av_malloc_array(ctx->h, sizeof(int16_t)); av_malloc_array 95 libavcodec/pixlet.c ctx->filter[1] = av_malloc_array(FFMAX(ctx->h, ctx->w) + 16, sizeof(int16_t)); av_malloc_array 96 libavcodec/pixlet.c ctx->prediction = av_malloc_array((ctx->w >> NB_LEVELS), sizeof(int16_t)); av_malloc_array 1087 libavcodec/pngdec.c buffer = av_malloc_array(s->image_linesize, s->height); av_malloc_array 40 libavcodec/psymodel.c ctx->bands = av_malloc_array (sizeof(ctx->bands[0]), num_lens); av_malloc_array 41 libavcodec/psymodel.c ctx->num_bands = av_malloc_array (sizeof(ctx->num_bands[0]), num_lens); av_malloc_array 217 libavcodec/pthread_slice.c p->progress_mutex = av_malloc_array(p->thread_count, sizeof(pthread_mutex_t)); av_malloc_array 218 libavcodec/pthread_slice.c p->progress_cond = av_malloc_array(p->thread_count, sizeof(pthread_cond_t)); av_malloc_array 1024 libavcodec/qsvenc.c q->opaque_surfaces = av_malloc_array(nb_surfaces, sizeof(*q->opaque_surfaces)); av_malloc_array 352 libavcodec/ratecontrol.c qscale = av_malloc_array(rcc->num_entries, sizeof(double)); av_malloc_array 353 libavcodec/ratecontrol.c blurred_qscale = av_malloc_array(rcc->num_entries, sizeof(double)); av_malloc_array 249 libavcodec/roqvideoenc.c tempData->cel_evals = av_malloc_array(enc->width*enc->height/64, sizeof(CelEvaluation)); av_malloc_array 787 libavcodec/roqvideoenc.c int *codebook = av_malloc_array(6*c_size, cbsize*sizeof(int)); av_malloc_array 794 libavcodec/roqvideoenc.c closest_cb = av_malloc_array(6*c_size, inputCount*sizeof(int)); av_malloc_array 835 libavcodec/roqvideoenc.c uint8_t *yuvClusters=av_malloc_array(max, sizeof(int)*6*4); av_malloc_array 836 libavcodec/roqvideoenc.c int *points = av_malloc_array(max, 6*4*sizeof(int)); av_malloc_array 860 libavcodec/roqvideoenc.c tempData->closest_cb2 = av_malloc_array(max, 4*sizeof(int)); av_malloc_array 1018 libavcodec/roqvideoenc.c av_malloc_array ((enc->width*enc->height/16), sizeof(motion_vect)); av_malloc_array 1024 libavcodec/roqvideoenc.c av_malloc_array ((enc->width*enc->height/64), sizeof(motion_vect)); av_malloc_array 647 libavcodec/scpr.c s->blocks = av_malloc_array(s->nbcount, sizeof(*s->blocks)); av_malloc_array 598 libavcodec/snow.c halfpel[1][p] = av_malloc_array(ls, (h + 2 * EDGE_WIDTH)); av_malloc_array 599 libavcodec/snow.c halfpel[2][p] = av_malloc_array(ls, (h + 2 * EDGE_WIDTH)); av_malloc_array 600 libavcodec/snow.c halfpel[3][p] = av_malloc_array(ls, (h + 2 * EDGE_WIDTH)); av_malloc_array 41 libavcodec/snow_dwt.c buf->data_stack = av_malloc_array(max_allocated_lines, sizeof(IDWTELEM *)); av_malloc_array 48 libavcodec/snow_dwt.c buf->data_stack[i] = av_malloc_array(line_width, sizeof(IDWTELEM)); av_malloc_array 506 libavcodec/snowdec.c s->avmv = av_malloc_array(s->b_width * s->b_height, sizeof(AVMotionVector) << (s->block_max_depth*2)); av_malloc_array 134 libavcodec/sunrast.c ptr = ptr2 = av_malloc_array((w + 15), h); av_malloc_array 607 libavcodec/svq1enc.c s->scratchbuf = av_malloc_array(s->current_picture->linesize[0], 16 * 3); av_malloc_array 89 libavcodec/tests/fft.c exptab = av_malloc_array((n / 2), sizeof(*exptab)); av_malloc_array 447 libavcodec/tests/fft.c tab = av_malloc_array(fft_size, sizeof(FFTComplex)); av_malloc_array 448 libavcodec/tests/fft.c tab1 = av_malloc_array(fft_size, sizeof(FFTComplex)); av_malloc_array 449 libavcodec/tests/fft.c tab_ref = av_malloc_array(fft_size, sizeof(FFTComplex)); av_malloc_array 450 libavcodec/tests/fft.c tab2 = av_malloc_array(fft_size, sizeof(FFTSample)); av_malloc_array 1616 libavcodec/tiff.c dp = av_malloc_array(count, sizeof(double)); av_malloc_array 213 libavcodec/truemotion2.c code->recode = av_malloc_array(code->length, sizeof(int)); av_malloc_array 976 libavcodec/truemotion2.c l->last = av_malloc_array(w >> 2, 4 * sizeof(*l->last) ); av_malloc_array 977 libavcodec/truemotion2.c l->clast = av_malloc_array(w >> 2, 4 * sizeof(*l->clast)); av_malloc_array 114 libavcodec/tta.c s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx)); av_malloc_array 58 libavcodec/ttaenc.c s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx)); av_malloc_array 301 libavcodec/vaapi_decode.c attr = av_malloc_array(nb_attr, sizeof(*attr)); av_malloc_array 443 libavcodec/vaapi_decode.c profile_list = av_malloc_array(profile_count, av_malloc_array 1261 libavcodec/vaapi_encode.c va_profiles = av_malloc_array(n, sizeof(VAProfile)); av_malloc_array 1321 libavcodec/vaapi_encode.c va_entrypoints = av_malloc_array(n, sizeof(VAEntrypoint)); av_malloc_array 196 libavcodec/vble.c ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val)); av_malloc_array 654 libavcodec/vorbisdec.c av_malloc_array((floor_setup->data.t0.order + 1 + max_codebook_dim), av_malloc_array 728 libavcodec/vorbisdec.c res_setup->classifs = av_malloc_array(res_setup->ptns_to_read, av_malloc_array 861 libavcodec/vorbisdec.c av_malloc_array(n + 1, sizeof(int32_t)); // n + sentinel av_malloc_array 1002 libavcodec/vorbisdec.c vc->channel_residues = av_malloc_array(vc->blocksize[1] / 2, vc->audio_channels * sizeof(*vc->channel_residues)); av_malloc_array 183 libavcodec/vorbisenc.c cb->dimensions = av_malloc_array(cb->nentries, sizeof(float) * cb->ndimensions); av_malloc_array 299 libavcodec/vorbisenc.c cb->lens = av_malloc_array(cb->nentries, sizeof(uint8_t)); av_malloc_array 300 libavcodec/vorbisenc.c cb->codewords = av_malloc_array(cb->nentries, sizeof(uint32_t)); av_malloc_array 308 libavcodec/vorbisenc.c cb->quantlist = av_malloc_array(vals, sizeof(int)); av_malloc_array 338 libavcodec/vorbisenc.c fc->classes = av_malloc_array(fc->nclasses, sizeof(vorbis_enc_floor_class)); av_malloc_array 348 libavcodec/vorbisenc.c c->books = av_malloc_array(books, sizeof(int)); av_malloc_array 361 libavcodec/vorbisenc.c fc->list = av_malloc_array(fc->values, sizeof(vorbis_floor1_entry)); av_malloc_array 455 libavcodec/vorbisenc.c venc->saved = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2); av_malloc_array 456 libavcodec/vorbisenc.c venc->samples = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1])); av_malloc_array 457 libavcodec/vorbisenc.c venc->floor = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2); av_malloc_array 458 libavcodec/vorbisenc.c venc->coeffs = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2); av_malloc_array 459 libavcodec/vorbisenc.c venc->scratch = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1])); av_malloc_array 2282 libavcodec/vp3.c s->dc_pred_row = av_malloc_array(s->y_superblock_width * 4, sizeof(*s->dc_pred_row)); av_malloc_array 60 libavcodec/vp9.c s->entries = av_malloc_array(n, sizeof(atomic_int)); av_malloc_array 321 libavcodec/vp9.c td->b_base = av_malloc_array(s->cols * s->rows, sizeof(VP9Block)); av_malloc_array 333 libavcodec/vp9.c td->block_structure = av_malloc_array(s->cols * s->rows, sizeof(*td->block_structure)); av_malloc_array 354 libavcodec/vp9.c s->td[i].block_structure = av_malloc_array(s->cols * s->rows, sizeof(*td->block_structure)); av_malloc_array 313 libavcodec/webp.c codes = av_malloc_array(alphabet_size, sizeof(*codes)); av_malloc_array 48 libavcodec/wma.c run_table = av_malloc_array(n, sizeof(uint16_t)); av_malloc_array 49 libavcodec/wma.c level_table = av_malloc_array(n, sizeof(uint16_t)); av_malloc_array 50 libavcodec/wma.c flevel_table = av_malloc_array(n, sizeof(*flevel_table)); av_malloc_array 51 libavcodec/wma.c int_table = av_malloc_array(n, sizeof(uint16_t)); av_malloc_array 283 libavdevice/alsa.c s->reorder_buf = av_malloc_array(s->reorder_buf_size, s->frame_size); av_malloc_array 163 libavdevice/jack.c self->ports = av_malloc_array(self->nports, sizeof(*self->ports)); av_malloc_array 247 libavdevice/lavfi.c lavfi->sinks = av_malloc_array(lavfi->nb_sinks, sizeof(AVFilterContext *)); av_malloc_array 358 libavdevice/v4l2.c s->buf_start = av_malloc_array(s->buffers, sizeof(void *)); av_malloc_array 363 libavdevice/v4l2.c s->buf_len = av_malloc_array(s->buffers, sizeof(unsigned int)); av_malloc_array 197 libavfilter/af_adelay.c d->samples = av_malloc_array(d->delay, s->block_align); av_malloc_array 296 libavfilter/af_afir.c phase = av_malloc_array(s->w, sizeof(*phase)); av_malloc_array 297 libavfilter/af_afir.c mag = av_malloc_array(s->w, sizeof(*mag)); av_malloc_array 298 libavfilter/af_afir.c delay = av_malloc_array(s->w, sizeof(*delay)); av_malloc_array 877 libavfilter/af_aiir.c phase = av_malloc_array(s->w, sizeof(*phase)); av_malloc_array 878 libavfilter/af_aiir.c temp = av_malloc_array(s->w, sizeof(*temp)); av_malloc_array 879 libavfilter/af_aiir.c mag = av_malloc_array(s->w, sizeof(*mag)); av_malloc_array 880 libavfilter/af_aiir.c delay = av_malloc_array(s->w, sizeof(*delay)); av_malloc_array 322 libavfilter/af_alimiter.c s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos)); av_malloc_array 215 libavfilter/af_aphaser.c s->modulation_buffer = av_malloc_array(s->modulation_buffer_length, sizeof(*s->modulation_buffer)); av_malloc_array 181 libavfilter/af_dynaudnorm.c q->elements = av_malloc_array(max_size, sizeof(double)); av_malloc_array 338 libavfilter/af_dynaudnorm.c s->prev_amplification_factor = av_malloc_array(inlink->channels, sizeof(*s->prev_amplification_factor)); av_malloc_array 345 libavfilter/af_dynaudnorm.c s->weights = av_malloc_array(MAX_FILTER_SIZE, sizeof(*s->weights)); av_malloc_array 803 libavfilter/af_firequalizer.c s->cepstrum_buf = av_malloc_array(s->cepstrum_len, sizeof(*s->cepstrum_buf)); av_malloc_array 824 libavfilter/af_firequalizer.c s->dump_buf = av_malloc_array(s->analysis_rdft_len, sizeof(*s->dump_buf)); av_malloc_array 827 libavfilter/af_firequalizer.c s->analysis_buf = av_malloc_array(s->analysis_rdft_len, sizeof(*s->analysis_buf)); av_malloc_array 828 libavfilter/af_firequalizer.c s->kernel_tmp_buf = av_malloc_array(s->rdft_len * (s->multi ? inlink->channels : 1), sizeof(*s->kernel_tmp_buf)); av_malloc_array 829 libavfilter/af_firequalizer.c s->kernel_buf = av_malloc_array(s->rdft_len * (s->multi ? inlink->channels : 1), sizeof(*s->kernel_buf)); av_malloc_array 747 libavfilter/af_loudnorm.c s->buf = av_malloc_array(s->buf_size, sizeof(*s->buf)); av_malloc_array 752 libavfilter/af_loudnorm.c s->limiter_buf = av_malloc_array(s->buf_size, sizeof(*s->limiter_buf)); av_malloc_array 756 libavfilter/af_loudnorm.c s->prev_smp = av_malloc_array(inlink->channels, sizeof(*s->prev_smp)); av_malloc_array 151 libavfilter/af_silencedetect.c s->start = av_malloc_array(sizeof(*s->start), s->independent_channels); av_malloc_array 211 libavfilter/af_silenceremove.c s->window = av_malloc_array(s->window_size, sizeof(*s->window)); av_malloc_array 226 libavfilter/af_silenceremove.c s->start_holdoff = av_malloc_array(FFMAX(s->start_duration, 1), av_malloc_array 232 libavfilter/af_silenceremove.c s->start_silence_hold = av_malloc_array(FFMAX(s->start_silence, 1), av_malloc_array 242 libavfilter/af_silenceremove.c s->stop_holdoff = av_malloc_array(FFMAX(s->stop_duration, 1), av_malloc_array 248 libavfilter/af_silenceremove.c s->stop_silence_hold = av_malloc_array(FFMAX(s->stop_silence, 1), av_malloc_array 857 libavfilter/af_sofalizer.c data_hrtf_l = av_malloc_array(n_fft, sizeof(*data_hrtf_l) * n_conv); av_malloc_array 858 libavfilter/af_sofalizer.c data_hrtf_r = av_malloc_array(n_fft, sizeof(*data_hrtf_r) * n_conv); av_malloc_array 866 libavfilter/af_sofalizer.c s->temp_fft[0] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); av_malloc_array 867 libavfilter/af_sofalizer.c s->temp_fft[1] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); av_malloc_array 868 libavfilter/af_sofalizer.c s->temp_afft[0] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); av_malloc_array 869 libavfilter/af_sofalizer.c s->temp_afft[1] = av_malloc_array(s->n_fft, sizeof(FFTComplex)); av_malloc_array 931 libavfilter/af_sofalizer.c s->data_hrtf[0] = av_malloc_array(n_fft * s->n_conv, sizeof(FFTComplex)); av_malloc_array 932 libavfilter/af_sofalizer.c s->data_hrtf[1] = av_malloc_array(n_fft * s->n_conv, sizeof(FFTComplex)); av_malloc_array 213 libavfilter/af_surround.c s->input_levels = av_malloc_array(s->nb_in_channels, sizeof(*s->input_levels)); av_malloc_array 276 libavfilter/af_surround.c s->output_levels = av_malloc_array(s->nb_out_channels, sizeof(*s->output_levels)); av_malloc_array 130 libavfilter/af_tremolo.c s->table = av_malloc_array(s->table_size, sizeof(*s->table)); av_malloc_array 167 libavfilter/af_vibrato.c s->buf[c] = av_malloc_array(s->buf_size, sizeof(*s->buf[c])); av_malloc_array 174 libavfilter/af_vibrato.c s->wave_table = av_malloc_array(s->wave_table_size, sizeof(*s->wave_table)); av_malloc_array 136 libavfilter/asrc_hilbert.c s->taps = av_malloc_array(s->nb_taps, sizeof(*s->taps)); av_malloc_array 103 libavfilter/avf_abitscope.c s->fg = av_malloc_array(s->nb_channels, 4 * sizeof(*s->fg)); av_malloc_array 149 libavfilter/avf_ahistogram.c s->combine_buffer = av_malloc_array(outlink->w * 3, sizeof(*s->combine_buffer)); av_malloc_array 172 libavfilter/avf_showcqt.c freq = av_malloc_array(n, sizeof(*freq)); av_malloc_array 237 libavfilter/avf_showcqt.c s->sono_v_buf = av_malloc_array(s->cqt_len, sizeof(*s->sono_v_buf)); av_malloc_array 238 libavfilter/avf_showcqt.c s->bar_v_buf = av_malloc_array(s->cqt_len, sizeof(*s->bar_v_buf)); av_malloc_array 1386 libavfilter/avf_showcqt.c s->cqt_result = av_malloc_array(s->cqt_len, sizeof(*s->cqt_result)); av_malloc_array 1395 libavfilter/avf_showcqt.c s->attack_data = av_malloc_array(s->remaining_fill_max, sizeof(*s->attack_data)); av_malloc_array 1454 libavfilter/avf_showcqt.c s->h_buf = av_malloc_array(s->cqt_len, sizeof (*s->h_buf)); av_malloc_array 1455 libavfilter/avf_showcqt.c s->rcp_h_buf = av_malloc_array(s->width, sizeof(*s->rcp_h_buf)); av_malloc_array 1456 libavfilter/avf_showcqt.c s->c_buf = av_malloc_array(s->width, sizeof(*s->c_buf)); av_malloc_array 505 libavfilter/avf_showwaves.c showwaves->fg = av_malloc_array(nb_channels, 4 * sizeof(*showwaves->fg)); av_malloc_array 684 libavfilter/avfilter.c ret->input_pads = av_malloc_array(ret->nb_inputs, sizeof(AVFilterPad)); av_malloc_array 695 libavfilter/avfilter.c ret->output_pads = av_malloc_array(ret->nb_outputs, sizeof(AVFilterPad)); av_malloc_array 165 libavfilter/dnn/dnn_backend_tf.c tf_model->outputs = av_malloc_array(nb_output, sizeof(*tf_model->outputs)); av_malloc_array 100 libavfilter/drawutils.c line[0] = av_malloc_array(w, pixel_step[0]); av_malloc_array 158 libavfilter/ebur128.c (int *) av_malloc_array(st->channels, sizeof(*st->d->channel_map)); av_malloc_array 278 libavfilter/ebur128.c st->d->data_ptrs = av_malloc_array(channels, sizeof(*st->d->data_ptrs)); av_malloc_array 446 libavfilter/f_ebur128.c ebur128->swr_buf = av_malloc_array(nb_channels, 19200 * sizeof(double)); av_malloc_array 69 libavfilter/formats.c if (!(ret->fmts = av_malloc_array(count, sizeof(*ret->fmts)))) \ av_malloc_array 199 libavfilter/formats.c !(ret->channel_layouts = av_malloc_array(ret_max, av_malloc_array 276 libavfilter/formats.c formats->field = av_malloc_array(count, sizeof(*formats->field)); \ av_malloc_array 403 libavfilter/formats.c formats->formats = av_malloc_array(nb_formats, sizeof(*formats->formats)); av_malloc_array 198 libavfilter/signature_lookup.c hspace_elem** hspace = av_malloc_array(MAX_FRAMERATE, sizeof(hspace_elem *)); av_malloc_array 202 libavfilter/signature_lookup.c hspace[i] = av_malloc_array(2 * HOUGH_MAX_OFFSET + 1, sizeof(hspace_elem)); av_malloc_array 188 libavfilter/vf_avgblur.c s->buffer = av_malloc_array(inlink->w, inlink->h * sizeof(*s->buffer)); av_malloc_array 156 libavfilter/vf_dblur.c s->buffer = av_malloc_array(FFALIGN(inlink->w, 16), FFALIGN(inlink->h, 16) * sizeof(*s->buffer)); av_malloc_array 572 libavfilter/vf_dctdnoiz.c s->cbuf[i][0] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][0])); av_malloc_array 573 libavfilter/vf_dctdnoiz.c s->cbuf[i][1] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][1])); av_malloc_array 574 libavfilter/vf_dctdnoiz.c s->cbuf[i][2] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][2])); av_malloc_array 595 libavfilter/vf_dctdnoiz.c s->slices[i] = av_malloc_array(linesize, slice_h * sizeof(*s->slices[i])); av_malloc_array 257 libavfilter/vf_decimate.c dm->bdiffs = av_malloc_array(dm->bdiffsize, sizeof(*dm->bdiffs)); av_malloc_array 1178 libavfilter/vf_deshake_opencl.c ctx->gauss_kernel = av_malloc_array(ctx->smooth_window, sizeof(float)); av_malloc_array 1184 libavfilter/vf_deshake_opencl.c ctx->ransac_err = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(float)); av_malloc_array 1218 libavfilter/vf_deshake_opencl.c pattern_host = av_malloc_array(BREIFN, sizeof(PointPair)); av_malloc_array 1224 libavfilter/vf_deshake_opencl.c ctx->matches_host = av_malloc_array(image_grid_32, sizeof(MotionVector)); av_malloc_array 1230 libavfilter/vf_deshake_opencl.c ctx->matches_contig_host = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(MotionVector)); av_malloc_array 1236 libavfilter/vf_deshake_opencl.c ctx->inliers = av_malloc_array(MATCHES_CONTIG_SIZE, sizeof(MotionVector)); av_malloc_array 2001 libavfilter/vf_deshake_opencl.c debug_matches.matches = av_malloc_array(num_vectors, sizeof(MotionVector)); av_malloc_array 622 libavfilter/vf_drawtext.c if (!(unicodestr = av_malloc_array(len, sizeof(*unicodestr)))) { av_malloc_array 628 libavfilter/vf_drawtext.c bidi_types = av_malloc_array(len, sizeof(*bidi_types)); av_malloc_array 635 libavfilter/vf_drawtext.c embedding_levels = av_malloc_array(len, sizeof(*embedding_levels)); av_malloc_array 645 libavfilter/vf_drawtext.c ar_props = av_malloc_array(len, sizeof(*ar_props)); av_malloc_array 103 libavfilter/vf_entropy.c s->histogram = av_malloc_array(1 << s->depth, sizeof(*s->histogram)); av_malloc_array 288 libavfilter/vf_fftfilt.c if (!(s->rdft_hdata[i] = av_malloc_array(h, s->rdft_hlen[i] * sizeof(FFTSample)))) av_malloc_array 300 libavfilter/vf_fftfilt.c if (!(s->rdft_vdata[i] = av_malloc_array(s->rdft_hlen[i], s->rdft_vlen[i] * sizeof(FFTSample)))) av_malloc_array 311 libavfilter/vf_fftfilt.c if(!(s->weight[plane] = av_malloc_array(s->rdft_hlen[plane], s->rdft_vlen[plane] * sizeof(double)))) av_malloc_array 76 libavfilter/vf_format.c s->formats = av_malloc_array(nb_formats + 1, sizeof(*s->formats)); av_malloc_array 103 libavfilter/vf_format.c formats_allowed = av_malloc_array(nb_formats_lavu + 1, sizeof(*formats_allowed)); av_malloc_array 522 libavfilter/vf_fspp.c fspp->temp = av_malloc_array(fspp->temp_stride, h * sizeof(*fspp->temp)); av_malloc_array 523 libavfilter/vf_fspp.c fspp->src = av_malloc_array(fspp->temp_stride, h * sizeof(*fspp->src)); av_malloc_array 243 libavfilter/vf_gblur.c s->buffer = av_malloc_array(FFALIGN(inlink->w, 16), FFALIGN(inlink->h, 16) * sizeof(*s->buffer)); av_malloc_array 150 libavfilter/vf_geq.c geq->pixel_sums[plane] = av_malloc_array(w, h * sizeof (*geq->pixel_sums[plane])); av_malloc_array 136 libavfilter/vf_hqdn3d.c *frame_ant_ptr = frame_ant = av_malloc_array(w, h*sizeof(uint16_t)); av_malloc_array 275 libavfilter/vf_hqdn3d.c s->line[i] = av_malloc_array(inlink->w, sizeof(*s->line[i])); av_malloc_array 177 libavfilter/vf_lenscorrection.c rect->correction[plane] = av_malloc_array(w, h * sizeof(**rect->correction)); av_malloc_array 245 libavfilter/vf_lensfun.c lensfun->distortion_coords = av_malloc_array(inlink->w * inlink->h, sizeof(float) * 2 * 3); av_malloc_array 262 libavfilter/vf_lensfun.c lensfun->distortion_coords = av_malloc_array(inlink->w * inlink->h, sizeof(float) * 2); av_malloc_array 275 libavfilter/vf_lensfun.c lensfun->interpolation = av_malloc_array(LANCZOS_RESOLUTION, sizeof(float) * 4); av_malloc_array 356 libavfilter/vf_lut2.c s->lut[p] = av_malloc_array(1 << s->depth, sizeof(uint16_t)); av_malloc_array 551 libavfilter/vf_lut3d.c lut3d->lut = av_malloc_array(lutsize * lutsize * lutsize, sizeof(*lut3d->lut)); av_malloc_array 559 libavfilter/vf_lut3d.c lut3d->prelut.lut[i] = av_malloc_array(PRELUT_SIZE, sizeof(*lut3d->prelut.lut[0])); av_malloc_array 159 libavfilter/vf_median.c s->coarse[i] = av_malloc_array(s->coarse_size, sizeof(**s->coarse)); av_malloc_array 160 libavfilter/vf_median.c s->fine[i] = av_malloc_array(s->fine_size, sizeof(**s->fine)); av_malloc_array 327 libavfilter/vf_nlmeans.c s->wa = av_malloc_array(s->wa_linesize, inlink->h * sizeof(*s->wa)); av_malloc_array 749 libavfilter/vf_nnedi.c frame_data->paddedp[plane] = av_malloc_array(frame_data->padded_stride[plane], frame_data->padded_height[plane]); av_malloc_array 980 libavfilter/vf_nnedi.c s->weights0 = av_malloc_array(FFMAX(dims0, dims0new), sizeof(float)); av_malloc_array 987 libavfilter/vf_nnedi.c s->weights1[i] = av_malloc_array(dims1, sizeof(float)); av_malloc_array 331 libavfilter/vf_owdenoise.c s->plane[i][j] = av_malloc_array(s->linesize, h * sizeof(s->plane[0][0][0])); av_malloc_array 268 libavfilter/vf_palettegen.c struct color_ref **refs = av_malloc_array(nb_refs, sizeof(*refs)); av_malloc_array 50 libavfilter/vf_pixdesctest.c if (!(priv->line = av_malloc_array(sizeof(*priv->line), inlink->w))) av_malloc_array 295 libavfilter/vf_pp7.c pp7->src = av_malloc_array(pp7->temp_stride, (h + 8) * sizeof(uint8_t)); av_malloc_array 317 libavfilter/vf_removelogo.c mask = (int ***)av_malloc_array(s->max_mask_size + 1, sizeof(int **)); av_malloc_array 322 libavfilter/vf_removelogo.c mask[a] = (int **)av_malloc_array((a * 2) + 1, sizeof(int *)); av_malloc_array 328 libavfilter/vf_removelogo.c mask[a][b + a] = (int *)av_malloc_array((a * 2) + 1, sizeof(int)); av_malloc_array 184 libavfilter/vf_sab.c f->dist_coeff = av_malloc_array(f->dist_width, f->dist_linesize * sizeof(*f->dist_coeff)); av_malloc_array 171 libavfilter/vf_signalstats.c s->histy = av_malloc_array(s->maxsize, sizeof(*s->histy)); av_malloc_array 172 libavfilter/vf_signalstats.c s->histu = av_malloc_array(s->maxsize, sizeof(*s->histu)); av_malloc_array 173 libavfilter/vf_signalstats.c s->histv = av_malloc_array(s->maxsize, sizeof(*s->histv)); av_malloc_array 174 libavfilter/vf_signalstats.c s->histsat = av_malloc_array(s->maxsize, sizeof(*s->histsat)); av_malloc_array 189 libavfilter/vf_signalstats.c s->jobs_rets = av_malloc_array(s->nb_jobs, sizeof(*s->jobs_rets)); av_malloc_array 199 libavfilter/vf_signature.c intjlut = av_malloc_array(inlink->w, sizeof(int)); av_malloc_array 259 libavfilter/vf_signature.c elemsignature = av_malloc_array(elemcat->elem_count, sizeof(int64_t)); av_malloc_array 262 libavfilter/vf_signature.c sortsignature = av_malloc_array(elemcat->elem_count, sizeof(int64_t)); av_malloc_array 503 libavfilter/vf_signature.c uint8_t* buffer = av_malloc_array(len, sizeof(uint8_t)); av_malloc_array 350 libavfilter/vf_spp.c s->temp = av_malloc_array(s->temp_linesize, h * sizeof(*s->temp)); av_malloc_array 351 libavfilter/vf_spp.c s->src = av_malloc_array(s->temp_linesize, h * sizeof(*s->src) * 2); av_malloc_array 214 libavfilter/vf_swaprect.c s->temp = av_malloc_array(inlink->w, s->pixsteps[0]); av_malloc_array 220 libavfilter/vf_unsharp.c fp->sr = av_malloc_array((MAX_MATRIX_SIZE - 1) * s->nb_threads, sizeof(uint32_t)); av_malloc_array 226 libavfilter/vf_unsharp.c if (!(fp->sc[z] = av_malloc_array(width + 2 * fp->steps_x, av_malloc_array 339 libavfilter/vf_uspp.c if (!(uspp->temp[i] = av_malloc_array(uspp->temp_stride[i], h * sizeof(int16_t)))) av_malloc_array 341 libavfilter/vf_uspp.c if (!(uspp->src [i] = av_malloc_array(uspp->temp_stride[i], h * sizeof(uint8_t)))) av_malloc_array 156 libavfilter/vf_vaguedenoiser.c s->block = av_malloc_array(inlink->w * inlink->h, sizeof(*s->block)); av_malloc_array 157 libavfilter/vf_vaguedenoiser.c s->in = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->in)); av_malloc_array 158 libavfilter/vf_vaguedenoiser.c s->out = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->out)); av_malloc_array 159 libavfilter/vf_vaguedenoiser.c s->tmp = av_malloc_array(32 + FFMAX(inlink->w, inlink->h), sizeof(*s->tmp)); av_malloc_array 320 libavfilter/vf_vignette.c s->fmap = av_malloc_array(s->fmap_linesize, inlink->h * sizeof(*s->fmap)); av_malloc_array 3341 libavfilter/vf_waveform.c s->peak = av_malloc_array(size, 32 * sizeof(*s->peak)); av_malloc_array 133 libavfilter/vsrc_mandelbrot.c s->point_cache= av_malloc_array(s->cache_allocated, sizeof(*s->point_cache)); av_malloc_array 134 libavfilter/vsrc_mandelbrot.c s-> next_cache= av_malloc_array(s->cache_allocated, sizeof(*s-> next_cache)); av_malloc_array 135 libavfilter/vsrc_mandelbrot.c s-> zyklus = av_malloc_array(s->maxiter + 16, sizeof(*s->zyklus)); av_malloc_array 271 libavformat/ape.c ape->frames = av_malloc_array(ape->totalframes, sizeof(APEFrame)); av_malloc_array 599 libavformat/flvenc.c buf = av_malloc_array(metadata_size, 2); av_malloc_array 87 libavformat/icodec.c ico->images = av_malloc_array(ico->nb_images, sizeof(IcoImage)); av_malloc_array 2645 libavformat/matroskadec.c track->audio.buf = av_malloc_array(track->audio.sub_packet_h, av_malloc_array 4152 libavformat/matroskadec.c buf = av_malloc_array(s->streams[0]->nb_index_entries, 20); av_malloc_array 2016 libavformat/mov.c sc->chunk_offsets = av_malloc_array(entries, sizeof(*sc->chunk_offsets)); av_malloc_array 2662 libavformat/mov.c sc->stsc_data = av_malloc_array(entries, sizeof(*sc->stsc_data)); av_malloc_array 2748 libavformat/mov.c sc->stps_data = av_malloc_array(entries, sizeof(*sc->stps_data)); av_malloc_array 2797 libavformat/mov.c sc->keyframes = av_malloc_array(entries, sizeof(*sc->keyframes)); av_malloc_array 2864 libavformat/mov.c sc->sample_sizes = av_malloc_array(entries, sizeof(*sc->sample_sizes)); av_malloc_array 3123 libavformat/mov.c sc->rap_group = av_malloc_array(entries, sizeof(*sc->rap_group)); av_malloc_array 4674 libavformat/mov.c if (!(new_tracks = av_malloc_array(num, sizeof(int)))) av_malloc_array 5252 libavformat/mov.c sc->elst_data = av_malloc_array(edit_count, sizeof(*sc->elst_data)); av_malloc_array 2354 libavformat/movenc.c ctts_entries = av_malloc_array((track->entry + 1), sizeof(*ctts_entries)); /* worst case */ av_malloc_array 2403 libavformat/movenc.c stts_entries = av_malloc_array(track->entry, sizeof(*stts_entries)); /* worst case */ av_malloc_array 2468 libavformat/movenc.c sgpd_entries = av_malloc_array(track->entry, sizeof(*sgpd_entries)); av_malloc_array 342 libavformat/nsvdec.c nsv->nsvs_file_offset = av_malloc_array((unsigned)table_entries_used, sizeof(uint32_t)); av_malloc_array 354 libavformat/nsvdec.c nsv->nsvs_timestamps = av_malloc_array((unsigned)table_entries_used, sizeof(uint32_t)); av_malloc_array 223 libavformat/nutdec.c nut->time_base = av_malloc_array(nut->time_base_count, sizeof(AVRational)); av_malloc_array 700 libavformat/nutdec.c syncpoints = av_malloc_array(syncpoint_count, sizeof(int64_t)); av_malloc_array 701 libavformat/nutdec.c has_keyframe = av_malloc_array(syncpoint_count + 1, sizeof(int8_t)); av_malloc_array 136 libavformat/pp_bnk.c if (!(ctx->tracks = av_malloc_array(hdr.track_count, sizeof(PPBnkCtxTrack)))) av_malloc_array 350 libavformat/prompeg.c s->fec_arr = av_malloc_array(s->fec_arr_len, sizeof (PrompegFec*)); av_malloc_array 359 libavformat/prompeg.c s->fec_arr[i]->bitstring = av_malloc_array(s->bitstring_size, sizeof (uint8_t)); av_malloc_array 369 libavformat/prompeg.c s->rtp_buf = av_malloc_array(s->rtp_buf_size, sizeof (uint8_t)); av_malloc_array 1997 libavformat/rtsp.c p = rt->p = av_malloc_array(2 * (rt->nb_rtsp_streams + 1), sizeof(struct pollfd)); av_malloc_array 203 libavformat/segafilm.c film->sample_table = av_malloc_array(film->sample_count, sizeof(film_sample)); av_malloc_array 484 libavformat/segment.c *times = av_malloc_array(*nb_times, sizeof(**times)); av_malloc_array 542 libavformat/segment.c *frames = av_malloc_array(*nb_frames, sizeof(**frames)); av_malloc_array 192 libavformat/sierravmd.c vmd->frame_table = av_malloc_array(vmd->frame_count * vmd->frames_per_block + sound_buffers, sizeof(vmd_frame)); av_malloc_array 208 libavformat/smacker.c smk->frm_size = av_malloc_array(smk->frames, sizeof(*smk->frm_size)); av_malloc_array 85 libavformat/tls_openssl.c openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t), CRYPTO_num_locks()); av_malloc_array 185 libavformat/wtvdec.c wf->sectors = av_malloc_array(nb_sectors1, 1 << WTV_SECTOR_BITS); av_malloc_array 208 libavformat/xwma.c dpds_table = av_malloc_array(dpds_table_size, sizeof(uint32_t)); av_malloc_array 51 libavutil/fifo.c void *buffer = av_malloc_array(nmemb, size); av_malloc_array 522 libavutil/frame.c dst->extended_data = av_malloc_array(sizeof(*dst->extended_data), ch); av_malloc_array 62 libavutil/hwcontext_cuda.c constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_formats) + 1, av_malloc_array 71 libavutil/hwcontext_cuda.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); av_malloc_array 192 libavutil/hwcontext_cuda.c fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 126 libavutil/hwcontext_d3d11va.c constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_formats) + 1, av_malloc_array 139 libavutil/hwcontext_d3d11va.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); av_malloc_array 312 libavutil/hwcontext_d3d11va.c fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 177 libavutil/hwcontext_drm.c pix_fmts = av_malloc_array(2, sizeof(*pix_fmts)); av_malloc_array 256 libavutil/hwcontext_dxva2.c fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 307 libavutil/hwcontext_opencl.c *platforms = av_malloc_array(*nb_platforms, sizeof(**platforms)); av_malloc_array 381 libavutil/hwcontext_opencl.c *devices = av_malloc_array(*nb_devices, sizeof(**devices)); av_malloc_array 958 libavutil/hwcontext_opencl.c *devices = av_malloc_array(*nb_devices, sizeof(**devices)); av_malloc_array 1046 libavutil/hwcontext_opencl.c *devices = av_malloc_array(*nb_devices, sizeof(**devices)); av_malloc_array 1117 libavutil/hwcontext_opencl.c *devices = av_malloc_array(*nb_devices, sizeof(**devices)); av_malloc_array 1524 libavutil/hwcontext_opencl.c av_malloc_array(nb_image_formats, sizeof(*image_formats)); av_malloc_array 1587 libavutil/hwcontext_opencl.c av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); av_malloc_array 1766 libavutil/hwcontext_opencl.c fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 602 libavutil/hwcontext_qsv.c fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 1070 libavutil/hwcontext_qsv.c constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_pixel_formats) + 1, av_malloc_array 1079 libavutil/hwcontext_qsv.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); av_malloc_array 260 libavutil/hwcontext_vaapi.c constraints->valid_sw_formats = av_malloc_array(pix_fmt_count + 1, av_malloc_array 281 libavutil/hwcontext_vaapi.c constraints->valid_sw_formats = av_malloc_array(ctx->nb_formats + 1, av_malloc_array 292 libavutil/hwcontext_vaapi.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(pix_fmt)); av_malloc_array 113 libavutil/hwcontext_vdpau.c priv->pix_fmts[i] = av_malloc_array(nb_pix_fmts + 1, sizeof(*priv->pix_fmts[i])); av_malloc_array 184 libavutil/hwcontext_vdpau.c constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(vdpau_pix_fmts) + 1, av_malloc_array 195 libavutil/hwcontext_vdpau.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(*constraints->valid_hw_formats)); av_malloc_array 305 libavutil/hwcontext_vdpau.c fmts = av_malloc_array(priv->nb_pix_fmts, sizeof(*fmts)); av_malloc_array 96 libavutil/hwcontext_videotoolbox.c enum AVPixelFormat *fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 328 libavutil/hwcontext_vulkan.c sup_ext = av_malloc_array(sup_ext_count, sizeof(VkExtensionProperties)); av_malloc_array 346 libavutil/hwcontext_vulkan.c sup_ext = av_malloc_array(sup_ext_count, sizeof(VkExtensionProperties)); av_malloc_array 537 libavutil/hwcontext_vulkan.c devices = av_malloc_array(num, sizeof(VkPhysicalDevice)); av_malloc_array 659 libavutil/hwcontext_vulkan.c qs = av_malloc_array(num, sizeof(VkQueueFamilyProperties)); av_malloc_array 1225 libavutil/hwcontext_vulkan.c constraints->valid_sw_formats = av_malloc_array(count + 1, av_malloc_array 1246 libavutil/hwcontext_vulkan.c constraints->valid_hw_formats = av_malloc_array(2, sizeof(enum AVPixelFormat)); av_malloc_array 1777 libavutil/hwcontext_vulkan.c enum AVPixelFormat *fmts = av_malloc_array(2, sizeof(*fmts)); av_malloc_array 160 libavutil/internal.h p = av_malloc_array(nelem, elsize);\ av_malloc_array 220 libavutil/mem.h av_alloc_size(1, 2) void *av_malloc_array(size_t nmemb, size_t size); av_malloc_array 48 libavutil/pca.c pca->z = av_malloc_array(n, sizeof(*pca->z)); av_malloc_array 89 libavutil/tests/audio_fifo.c void **data_planes = av_malloc_array(afifo->nb_buffers, sizeof(void*)); av_malloc_array 97 libavutil/tests/audio_fifo.c data_planes[i] = av_malloc_array(tot_elements, afifo->sample_size); av_malloc_array 122 libavutil/tests/lfg.c double *PRN_arr = av_malloc_array(tot_samp, sizeof(double)); av_malloc_array 560 libavutil/tx_template.c if (!(s->exptab = av_malloc_array(len4, sizeof(*s->exptab)))) av_malloc_array 29 libswresample/dither.c double *tmp = av_malloc_array(len + TMP_EXTRA, sizeof(double)); av_malloc_array 149 libswresample/resample.c double *tab = av_malloc_array(tap_count+1, sizeof(*tab)); av_malloc_array 150 libswresample/resample.c double *sin_lut = av_malloc_array(ph_nb, sizeof(*sin_lut)); av_malloc_array 612 libswscale/utils.c filter = av_malloc_array(dstW, filterSize * sizeof(*filter)); av_malloc_array 248 tools/sidxindex.c adaptation_sets[i] = av_malloc_array(tracks->nb_tracks, sizeof(*adaptation_sets[i]));