Revision 5e5f75cf libavformat/ffmenc.c

View differences:

libavformat/ffmenc.c
74 74
        ffm->packet_ptr += len;
75 75
        buf += len;
76 76
        size -= len;
77
        if (ffm->packet_ptr >= ffm->packet_end) {
78
            /* special case : no pts in packet : we leave the current one */
79
            if (ffm->pts == 0)
80
                ffm->pts = pts;
81

  
77
        if (ffm->packet_ptr >= ffm->packet_end)
82 78
            flush_packet(s);
83
        }
84 79
    }
85 80
}
86 81

  

Also available in: Unified diff