Revision 7a86f98f out-stream-avf.c

View differences:

out-stream-avf.c
121 121

  
122 122
    frame_size = data[10 + (2 + 2 + 2) * i] << 8 | data[11 + (2 + 2 + 2) * i];
123 123
    pts = data[12 + (2 + 2 + 2) * i] << 8 | data[13 + (2 + 2 + 2) * i];
124
    dprintf("Frame %d PTS1: %d\n", i, pts);
124 125
    pts += (pts < prev_pts - (1 << 15)) ? ((prev_pts >> 16) + 1) << 16 : (prev_pts >> 16) << 16;
126
    dprintf(" PTS2: %d\n", pts);
125 127
    prev_pts = pts;
126 128
    dts = data[14 + (2 + 2 + 2) * i] << 8 | data[15 + (2 + 2 + 2) * i];
127 129
    dts += (dts < prev_dts - (1 << 15)) ? ((prev_dts >> 16) + 1) << 16 : (prev_dts >> 16) << 16;

Also available in: Unified diff