|
@@ -6384,7 +6384,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
} else { |
|
|
} else { |
|
|
int64_t next_dts = (sc->current_sample < st->nb_index_entries) ? |
|
|
int64_t next_dts = (sc->current_sample < st->nb_index_entries) ? |
|
|
st->index_entries[sc->current_sample].timestamp : st->duration; |
|
|
st->index_entries[sc->current_sample].timestamp : st->duration; |
|
|
pkt->duration = next_dts - pkt->dts; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (next_dts >= pkt->dts) |
|
|
|
|
|
pkt->duration = next_dts - pkt->dts; |
|
|
pkt->pts = pkt->dts; |
|
|
pkt->pts = pkt->dts; |
|
|
} |
|
|
} |
|
|
if (st->discard == AVDISCARD_ALL) |
|
|
if (st->discard == AVDISCARD_ALL) |
|
|