Home | History | Annotate | Download | only in libFLAC

Lines Matching full:num_blocks

1717 FLAC_API FLAC__bool FLAC__stream_encoder_set_metadata(FLAC__StreamEncoder *encoder, FLAC__StreamMetadata **metadata, unsigned num_blocks)
1725 num_blocks = 0;
1726 if(0 == num_blocks)
1734 if(num_blocks) {
1736 if(0 == (m = (FLAC__StreamMetadata**)safe_malloc_mul_2op_(sizeof(m[0]), /*times*/num_blocks)))
1738 memcpy(m, metadata, sizeof(m[0]) * num_blocks);
1740 encoder->protected_->num_metadata_blocks = num_blocks;
1743 if(!FLAC__ogg_encoder_aspect_set_num_metadata(&encoder->protected_->ogg_encoder_aspect, num_blocks))