Revision 96573c0d libavformat/utils.c

View differences:

libavformat/utils.c
3063 3063
    AVStream *st2= s->streams[ next->stream_index];
3064 3064
    int64_t a= st2->time_base.num * (int64_t)st ->time_base.den;
3065 3065
    int64_t b= st ->time_base.num * (int64_t)st2->time_base.den;
3066
    return av_rescale_rnd(pkt->dts, b, a, AV_ROUND_DOWN) < next->dts;
3066
    int64_t dts1 = av_rescale_rnd(pkt->dts, b, a, AV_ROUND_DOWN);
3067
    if (dts1 == next->dts)
3068
        return pkt->stream_index < next->stream_index;
3069
    return dts1 < next->dts;
3067 3070
}
3068 3071

  
3069 3072
int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){

Also available in: Unified diff