Lines Matching defs:size

27 static int auxiliary_info_alloc_size(MOVMuxCencContext* ctx, int size)
31 if (ctx->auxiliary_info_size + size > ctx->auxiliary_info_alloc_size) {
32 new_alloc_size = FFMAX(ctx->auxiliary_info_size + size, ctx->auxiliary_info_alloc_size * 2);
44 const uint8_t *buf_in, int size)
48 ret = auxiliary_info_alloc_size(ctx, size);
52 memcpy(ctx->auxiliary_info + ctx->auxiliary_info_size, buf_in, size);
53 ctx->auxiliary_info_size += size;
90 const uint8_t *buf_in, int size)
94 int size_left = size;
148 /* add the auxiliary info entry size*/
168 const uint8_t *buf_in, int size)
177 ret = auxiliary_info_add_subsample(ctx, 0, size);
182 mov_cenc_write_encrypted(ctx, pb, buf_in, size);
193 const uint8_t *buf_in, int size)
196 const uint8_t *end = p + size;
205 size = 0;
220 size += 4 + nal_end - nal_start;
229 return size;
233 int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size)
244 while (size > 0) {
245 /* parse the nal size */
246 if (size < nal_length_size + 1) {
247 av_log(s, AV_LOG_ERROR, "CENC-AVC: remaining size %d smaller than nal length+type %d\n",
248 size, nal_length_size + 1);
258 size -= nal_length_size;
261 if (nalsize <= 0 || nalsize > size) {
262 av_log(s, AV_LOG_ERROR, "CENC-AVC: nal size %d remaining %d\n", nalsize, size);
268 size -= nalsize;
286 avio_wb32(pb, curpos - pos); /* rewrite size */
297 avio_wb32(pb, 0); /* size */
311 avio_wb32(pb, 0); /* size */
328 avio_wb32(pb, 0); /* size */
331 avio_w8(pb, ctx->use_subsamples ? 0 : AES_CTR_IV_SIZE); /* default size*/
351 avio_wb32(pb, 0); /* size */
354 avio_wb32(pb, 32); /* size */
358 avio_w8(pb, AES_CTR_IV_SIZE); /* iv size */
367 avio_wb32(pb, 0); /* size */
371 avio_wb32(pb, 12); /* size */
376 avio_wb32(pb, 20); /* size */