Revision a15fdd7c ffmpeg.c

View differences:

ffmpeg.c
2305 2305
        }
2306 2306

  
2307 2307
        /* finish if recording time exhausted */
2308
        if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time, (AVRational){1, 1000000}) >= 0) {
2308
        if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time + start_time, (AVRational){1, 1000000}) >= 0) {
2309 2309
            ist->is_past_recording_time = 1;
2310 2310
            goto discard_packet;
2311 2311
        }

Also available in: Unified diff