Revision 440d761e

View differences:

libavformat/utils.c
2917 2917

  
2918 2918
    if(st->cur_dts && st->cur_dts != AV_NOPTS_VALUE && st->cur_dts >= pkt->dts){
2919 2919
        av_log(s, AV_LOG_ERROR,
2920
               "st:%d error, non monotone timestamps %"PRId64" >= %"PRId64"\n",
2920
               "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %"PRId64" >= %"PRId64"\n",
2921 2921
               st->index, st->cur_dts, pkt->dts);
2922 2922
        return -1;
2923 2923
    }
2924 2924
    if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts){
2925
        av_log(s, AV_LOG_ERROR, "st:%d error, pts < dts\n", st->index);
2925
        av_log(s, AV_LOG_ERROR, "pts < dts in stream %d\n", st->index);
2926 2926
        return -1;
2927 2927
    }
2928 2928

  

Also available in: Unified diff