invalid dts/pts combination


源码:

当i帧关键帧解码错误后,p帧就会报这个异常:

下面是判断源码:

libavformat\utils.c

if (delay == 1 && pkt->dts == pkt->pts &&
    pkt->dts != AV_NOPTS_VALUE && presentation_delayed) {
    av_log(s, AV_LOG_DEBUG, "invalid dts/pts combination %"PRIi64"\n", pkt->dts);
    if (    strcmp(s->iformat->name, "mov,mp4,m4a,3gp,3g2,mj2")
         && strcmp(s->iformat->name, "flv")) // otherwise we discard correct timestamps for vc1-wmapro.ism
        pkt->dts = AV_NOPTS_VALUE;
}

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/80321431