Revision fabb990e libavformat/ffmenc.c

View differences:

libavformat/ffmenc.c
37 37
    /* put header */
38 38
    put_be16(pb, PACKET_ID);
39 39
    put_be16(pb, fill_size);
40
    put_be64(pb, ffm->pts);
40
    put_be64(pb, ffm->dts);
41 41
    h = ffm->frame_offset;
42 42
    if (ffm->first_packet)
43 43
        h |= 0x8000;
......
54 54
/* 'first' is true if first data of a frame */
55 55
static void ffm_write_data(AVFormatContext *s,
56 56
                           const uint8_t *buf, int size,
57
                           int64_t pts, int header)
57
                           int64_t dts, int header)
58 58
{
59 59
    FFMContext *ffm = s->priv_data;
60 60
    int len;
61 61

  
62 62
    if (header && ffm->frame_offset == 0) {
63 63
        ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE;
64
        ffm->pts = pts;
64
        ffm->dts = dts;
65 65
    }
66 66

  
67 67
    /* write as many packets as needed */
......
180 180
    ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE;
181 181
    assert(ffm->packet_end >= ffm->packet);
182 182
    ffm->frame_offset = 0;
183
    ffm->pts = 0;
183
    ffm->dts = 0;
184 184
    ffm->first_packet = 1;
185 185

  
186 186
    return 0;

Also available in: Unified diff