Commit 513c45ad authored by michael's avatar michael

Fix indention.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21578 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b3a6081f
...@@ -2337,24 +2337,24 @@ static void event_loop(void) ...@@ -2337,24 +2337,24 @@ static void event_loop(void)
uint64_t size= url_fsize(cur_stream->ic->pb); uint64_t size= url_fsize(cur_stream->ic->pb);
stream_seek(cur_stream, size*(double)event.button.x/(double)cur_stream->width, 0, 1); stream_seek(cur_stream, size*(double)event.button.x/(double)cur_stream->width, 0, 1);
}else{ }else{
int64_t ts; int64_t ts;
int ns, hh, mm, ss; int ns, hh, mm, ss;
int tns, thh, tmm, tss; int tns, thh, tmm, tss;
tns = cur_stream->ic->duration/1000000LL; tns = cur_stream->ic->duration/1000000LL;
thh = tns/3600; thh = tns/3600;
tmm = (tns%3600)/60; tmm = (tns%3600)/60;
tss = (tns%60); tss = (tns%60);
frac = (double)event.button.x/(double)cur_stream->width; frac = (double)event.button.x/(double)cur_stream->width;
ns = frac*tns; ns = frac*tns;
hh = ns/3600; hh = ns/3600;
mm = (ns%3600)/60; mm = (ns%3600)/60;
ss = (ns%60); ss = (ns%60);
fprintf(stderr, "Seek to %2.0f%% (%2d:%02d:%02d) of total duration (%2d:%02d:%02d) \n", frac*100, fprintf(stderr, "Seek to %2.0f%% (%2d:%02d:%02d) of total duration (%2d:%02d:%02d) \n", frac*100,
hh, mm, ss, thh, tmm, tss); hh, mm, ss, thh, tmm, tss);
ts = frac*cur_stream->ic->duration; ts = frac*cur_stream->ic->duration;
if (cur_stream->ic->start_time != AV_NOPTS_VALUE) if (cur_stream->ic->start_time != AV_NOPTS_VALUE)
ts += cur_stream->ic->start_time; ts += cur_stream->ic->start_time;
stream_seek(cur_stream, ts, 0, 0); stream_seek(cur_stream, ts, 0, 0);
} }
} }
break; break;
......
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