Home
last modified time | relevance | path

Searched refs:discard_padding (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dlibmp3lame.c193 int len, ret, ch, discard_padding; in mp3lame_encode_frame() local
277 discard_padding = avctx->frame_size - avpkt->duration; in mp3lame_encode_frame()
279 if ((discard_padding < avctx->frame_size) != (avpkt->duration > 0)) { in mp3lame_encode_frame()
284 if ((!s->delay_sent && avctx->initial_padding > 0) || discard_padding > 0) { in mp3lame_encode_frame()
296 AV_WL32(side_data + 4, discard_padding); in mp3lame_encode_frame()
Dlibopusenc.c461 int discard_padding; in libopus_encode() local
510 discard_padding = opus->opts.packet_size - avpkt->duration; in libopus_encode()
512 if ((discard_padding < opus->opts.packet_size) != (avpkt->duration > 0)) { in libopus_encode()
516 if (discard_padding > 0) { in libopus_encode()
524 AV_WL32(side_data + 4, discard_padding); in libopus_encode()
Ddecode.c355 uint32_t discard_padding = 0; in decode_simple_internal() local
373 discard_padding = AV_RL32(side + 4); in decode_simple_internal()
375 avci->skip_samples, (int)discard_padding); in decode_simple_internal()
425 if (discard_padding > 0 && discard_padding <= frame->nb_samples && got_frame && in decode_simple_internal()
427 if (discard_padding == frame->nb_samples) { in decode_simple_internal()
432 int64_t diff_ts = av_rescale_q(frame->nb_samples - discard_padding, in decode_simple_internal()
440 (int)discard_padding, frame->nb_samples); in decode_simple_internal()
441 frame->nb_samples -= discard_padding; in decode_simple_internal()
449 AV_WL32(fside->data + 4, discard_padding); in decode_simple_internal()
/third_party/ffmpeg/libavformat/
Dmatroskadec.c343 int64_t discard_padding; member
750 { MATROSKA_ID_DISCARDPADDING, EBML_SINT, 0, 0, offsetof(MatroskaBlock, discard_padding) },
3503 int64_t discard_padding) in matroska_parse_frame() argument
3566 if (discard_padding) { in matroska_parse_frame()
3574 discard_padding = av_rescale_q(discard_padding, in matroska_parse_frame()
3577 if (discard_padding > 0) { in matroska_parse_frame()
3578 AV_WL32(side_data + 4, discard_padding); in matroska_parse_frame()
3580 AV_WL32(side_data, -discard_padding); in matroska_parse_frame()
3618 int64_t cluster_pos, int64_t discard_padding) in matroska_parse_block() argument
3751 discard_padding); in matroska_parse_block()
[all …]
Dmatroskaenc.c2039 int64_t discard_padding = 0; in mkv_write_block() local
2085 discard_padding = av_rescale_q(AV_RL32(side_data + 4), in mkv_write_block()
2103 if (side_data_size || discard_padding) { in mkv_write_block()
2121 if (discard_padding) in mkv_write_block()
2122 put_ebml_sint(pb, MATROSKA_ID_DISCARDPADDING, discard_padding); in mkv_write_block()
2135 if (side_data_size || discard_padding) in mkv_write_block()
Dutils.c1670 int discard_padding = 0; in read_frame_internal() local
1678 discard_padding = FFMIN(end_sample - st->internal->first_discard_sample, duration); in read_frame_internal()
1682 if (st->internal->skip_samples || discard_padding) { in read_frame_internal()
1686 AV_WL32(p + 4, discard_padding); in read_frame_internal()
1687 …OG_DEBUG, "demuxer injecting skip %d / discard %d\n", st->internal->skip_samples, discard_padding); in read_frame_internal()
/third_party/ffmpeg/tests/ref/fate/
Dmov-aac-2048-priming1 …s=36|flags=KDside_data|side_data_type=Skip Samples|skip_samples=2048|discard_padding=0|skip_reason…