Revision 40938d93 ffmpeg.c

View differences:

ffmpeg.c
2319 2319
        }
2320 2320

  
2321 2321
        /* finish if recording time exhausted */
2322
        if (pkt.pts * av_q2d(ist->st->time_base) >= (recording_time / 1000000.0)) {
2322
        if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time, (AVRational){1, 1000000}) >= 0) {
2323 2323
            ist->is_past_recording_time = 1;
2324 2324
            goto discard_packet;
2325 2325
        }

Also available in: Unified diff