Revision 0aaea2fb

View differences:

Chunkiser/input-stream-avs.c
162 162
      return NULL;
163 163
    }
164 164
    memcpy(data, pkt.data, *size);
165
    *ts = pkt.dts;
165
    *ts = av_rescale_q(pkt.dts, s->s->streams[pkt.stream_index]->time_base, AV_TIME_BASE_Q);
166 166

  
167 167
    return data;
168 168
}
input.c
54 54
  if (c->size == -1) {
55 55
    return -1;
56 56
  }
57
  c->id = s->id++;
57
  if (c->data) {
58
    c->id = s->id++;
59
  }
58 60
  c->attributes_size = 0;
59 61
  c->attributes = NULL;
60 62
  if (s->first_ts == 0) {

Also available in: Unified diff