Revision ca1a2a47

View differences:

libavformat/utils.c
2931 2931
            pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index);
2932 2932

  
2933 2933
/*    if(pkt->pts == AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE)
2934
        return -1;*/
2934
        return AVERROR(EINVAL);*/
2935 2935

  
2936 2936
    /* duration field */
2937 2937
    if (pkt->duration == 0) {
......
2966 2966
        av_log(s, AV_LOG_ERROR,
2967 2967
               "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %"PRId64" >= %"PRId64"\n",
2968 2968
               st->index, st->cur_dts, pkt->dts);
2969
        return -1;
2969
        return AVERROR(EINVAL);
2970 2970
    }
2971 2971
    if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts){
2972 2972
        av_log(s, AV_LOG_ERROR, "pts < dts in stream %d\n", st->index);
2973
        return -1;
2973
        return AVERROR(EINVAL);
2974 2974
    }
2975 2975

  
2976 2976
//    av_log(s, AV_LOG_DEBUG, "av_write_frame: pts2:%"PRId64" dts2:%"PRId64"\n", pkt->pts, pkt->dts);

Also available in: Unified diff