Revision 0c461e28 src/Chunkiser/output-stream-avf.c

View differences:

src/Chunkiser/output-stream-avf.c
105 105
  return &out;
106 106
}
107 107

  
108
static void avf_write(struct output_stream *o, int id, const uint8_t *data, int size)
108
static void avf_write(struct output_stream *o, int id, uint8_t *data, int size)
109 109
{
110 110
  const int header_size = VIDEO_PAYLOAD_HEADER_SIZE; 
111 111
  int frames, i;
112
  const uint8_t *p;
112
  uint8_t *p;
113 113

  
114 114
  if (data[0] > 127) {
115 115
    fprintf(stderr, "Error! Non video chunk: %x!!!\n", data[0]);
......
155 155
    dts += (dts < o->prev_dts - ((1LL << 31) - 1)) ? ((o->prev_dts >> 32) + 1) << 32 : (o->prev_dts >> 32) << 32;
156 156
    o->prev_dts = dts;
157 157
    pkt.dts = av_rescale_q(dts, o->outctx->streams[0]->codec->time_base, o->outctx->streams[0]->time_base);
158
    pkt.data = (uint8_t *)p;
158
    pkt.data = p;
159 159
    p += frame_size;
160 160
    pkt.size = frame_size;
161 161
    av_interleaved_write_frame(o->outctx, &pkt);

Also available in: Unified diff