Lines Matching defs:delay
820 int num, den, presentation_delayed, delay, i;
824 delay= st->codec->has_b_frames;
828 if (delay &&
840 if(delay==1 && pkt->dts == pkt->pts && pkt->dts != AV_NOPTS_VALUE && presentation_delayed){
891 //We skip H264 currently because delay and has_b_frames are not reliably set
892 if((delay==0 || (delay==1 && pc)) && st->codec->codec_id != CODEC_ID_H264){
934 if(pkt->pts != AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY){
936 for(i=0; i<delay && st->pts_buffer[i] > st->pts_buffer[i+1]; i++)
947 // av_log(NULL, AV_LOG_ERROR, "OUTdelayed:%d/%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64"\n", presentation_delayed, delay, pkt->pts, pkt->dts, st->cur_dts);
2592 int delay = FFMAX(st->codec->has_b_frames, !!st->codec->max_b_frames);
2595 // av_log(st->codec, AV_LOG_DEBUG, "av_write_frame: pts:%"PRId64" dts:%"PRId64" cur_dts:%"PRId64" b:%d size:%d st:%d\n", pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index);
2608 if(pkt->pts == AV_NOPTS_VALUE && pkt->dts != AV_NOPTS_VALUE && delay==0)
2612 if((pkt->pts == 0 || pkt->pts == AV_NOPTS_VALUE) && pkt->dts == AV_NOPTS_VALUE && !delay){
2619 if(pkt->pts != AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY){
2621 for(i=1; i<delay+1 && st->pts_buffer[i] == AV_NOPTS_VALUE; i++)
2622 st->pts_buffer[i]= (i-delay-1) * pkt->duration;
2623 for(i=0; i<delay && st->pts_buffer[i] > st->pts_buffer[i+1]; i++)
2648 likely equal to the encoder delay, but it would be better if we