Revision eeaba924

View differences:

ffmpeg.c
2700 2700

  
2701 2701
        /* finish if recording time exhausted */
2702 2702
        if (recording_time != INT64_MAX &&
2703
            av_compare_ts(pkt.pts, ist->st->time_base, recording_time + start_time, (AVRational){1, 1000000}) >= 0) {
2703
            (pkt.pts != AV_NOPTS_VALUE || pkt.dts != AV_NOPTS_VALUE ?
2704
                av_compare_ts(pkt.pts, ist->st->time_base, recording_time + start_time, (AVRational){1, 1000000})
2705
                    :
2706
                av_compare_ts(ist->pts, AV_TIME_BASE_Q, recording_time + start_time, (AVRational){1, 1000000})
2707
            )>= 0) {
2704 2708
            ist->is_past_recording_time = 1;
2705 2709
            goto discard_packet;
2706 2710
        }

Also available in: Unified diff