lavf utils: Fix bad indentation.
This commit is contained in:
parent
6c7ee2f7db
commit
7e6029f98a
@ -1969,9 +1969,9 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
|
|||||||
if (read_size >= DURATION_MAX_READ_SIZE<<(FFMAX(retry-1,0)))
|
if (read_size >= DURATION_MAX_READ_SIZE<<(FFMAX(retry-1,0)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
do{
|
do {
|
||||||
ret = av_read_packet(ic, pkt);
|
ret = av_read_packet(ic, pkt);
|
||||||
}while(ret == AVERROR(EAGAIN));
|
} while(ret == AVERROR(EAGAIN));
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
break;
|
break;
|
||||||
read_size += pkt->size;
|
read_size += pkt->size;
|
||||||
@ -1980,13 +1980,14 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
|
|||||||
(st->start_time != AV_NOPTS_VALUE ||
|
(st->start_time != AV_NOPTS_VALUE ||
|
||||||
st->first_dts != AV_NOPTS_VALUE)) {
|
st->first_dts != AV_NOPTS_VALUE)) {
|
||||||
duration = end_time = pkt->pts;
|
duration = end_time = pkt->pts;
|
||||||
if (st->start_time != AV_NOPTS_VALUE) duration -= st->start_time;
|
if (st->start_time != AV_NOPTS_VALUE)
|
||||||
else duration -= st->first_dts;
|
duration -= st->start_time;
|
||||||
|
else
|
||||||
|
duration -= st->first_dts;
|
||||||
if (duration < 0)
|
if (duration < 0)
|
||||||
duration += 1LL<<st->pts_wrap_bits;
|
duration += 1LL<<st->pts_wrap_bits;
|
||||||
if (duration > 0) {
|
if (duration > 0) {
|
||||||
if (st->duration == AV_NOPTS_VALUE ||
|
if (st->duration == AV_NOPTS_VALUE || st->duration < duration)
|
||||||
st->duration < duration)
|
|
||||||
st->duration = duration;
|
st->duration = duration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user