Commit 7e6029f9 authored by Alex Converse's avatar Alex Converse

lavf utils: Fix bad indentation.

parent 6c7ee2f7
...@@ -1969,9 +1969,9 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset) ...@@ -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) ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment