Lines Matching refs:scr
632 int64_t pts, int64_t dts, int64_t scr, int trailer_size) in flush_packet() argument
653 if ((s->packet_number % s->pack_header_freq) == 0 || s->last_scr != scr) { in flush_packet()
655 size = put_pack_header(ctx, buf_ptr, scr); in flush_packet()
657 s->last_scr = scr; in flush_packet()
702 scr += s->packet_size * 90000LL / in flush_packet()
704 size = put_pack_header(ctx, buf_ptr, scr); in flush_packet()
705 s->last_scr = scr; in flush_packet()
969 static int remove_decoded_packets(AVFormatContext *ctx, int64_t scr) in remove_decoded_packets() argument
979 scr > pkt_desc->dts) { // FIXME: > vs >= in remove_decoded_packets()
1008 int64_t scr = s->last_scr; in output_packet() local
1033 if (next_pkt && next_pkt->dts - scr > max_delay && !ignore_delay) in output_packet()
1060 scr / 90000.0, best_dts / 90000.0); in output_packet()
1062 if (scr >= best_dts + 1 && !ignore_constraints) { in output_packet()
1067 scr = FFMAX(best_dts + 1, scr); in output_packet()
1068 if (remove_decoded_packets(ctx, scr) < 0) in output_packet()
1102 scr / 90000.0, best_i); in output_packet()
1104 timestamp_packet->dts, scr, trailer_size); in output_packet()
1107 es_size = flush_packet(ctx, best_i, AV_NOPTS_VALUE, AV_NOPTS_VALUE, scr, in output_packet()