|
|
|
@ -1034,7 +1034,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, |
|
|
|
|
if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts > pkt->dts) |
|
|
|
|
presentation_delayed = 1; |
|
|
|
|
|
|
|
|
|
// av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc);
|
|
|
|
|
// av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p duration:%d\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc, pkt->duration);
|
|
|
|
|
/* interpolate PTS and DTS if they are not present */ |
|
|
|
|
//We skip H264 currently because delay and has_b_frames are not reliably set
|
|
|
|
|
if((delay==0 || (delay==1 && pc)) && st->codec->codec_id != CODEC_ID_H264){ |
|
|
|
|