mirror of https://git.ffmpeg.org/ffmpeg.git
Revert "lavf: count skipped samples for initial timestamps."
This reverts commit 885fc05865
.
This commit caused timestamps in case of generic seeking to become
inconsistent.
This commit is contained in:
parent
0e1925ddc4
commit
01272e7662
|
@ -942,10 +942,6 @@ static void update_initial_durations(AVFormatContext *s, AVStream *st,
|
||||||
AVPacketList *pktl= s->parse_queue ? s->parse_queue : s->packet_buffer;
|
AVPacketList *pktl= s->parse_queue ? s->parse_queue : s->packet_buffer;
|
||||||
int64_t cur_dts= RELATIVE_TS_BASE;
|
int64_t cur_dts= RELATIVE_TS_BASE;
|
||||||
|
|
||||||
if (st->skip_samples && st->codec->sample_rate && st->time_base.num)
|
|
||||||
cur_dts -= av_rescale_q(st->skip_samples,
|
|
||||||
(AVRational){ 1, st->codec->sample_rate },
|
|
||||||
st->time_base);
|
|
||||||
if(st->first_dts != AV_NOPTS_VALUE){
|
if(st->first_dts != AV_NOPTS_VALUE){
|
||||||
cur_dts= st->first_dts;
|
cur_dts= st->first_dts;
|
||||||
for(; pktl; pktl= get_next_pkt(s, st, pktl)){
|
for(; pktl; pktl= get_next_pkt(s, st, pktl)){
|
||||||
|
|
Loading…
Reference in New Issue