summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-29 17:42:06 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-29 17:42:06 +0000
commit921d736240f87ff2a4eb1276039b1dac050f94bb (patch)
treef3fa85d73dec9f1bce0ad33fa4cb4061f69c79f6 /mplayer.c
parent46ac01699192b51d3c2ac08c482bd9accc403dca (diff)
downloadmpv-921d736240f87ff2a4eb1276039b1dac050f94bb.tar.bz2
mpv-921d736240f87ff2a4eb1276039b1dac050f94bb.tar.xz
removed obsolote frame_corr_* stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1421 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/mplayer.c b/mplayer.c
index 950f93008c..39f4d7d4b3 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -944,8 +944,8 @@ make_pipe(&keyb_fifo_get,&keyb_fifo_put);
//================== MAIN: ==========================
{
-float frame_correction=0; // average of A-V timestamp differences
-int frame_corr_num=0; //
+//float frame_correction=0; // average of A-V timestamp differences
+//int frame_corr_num=0; //
//float v_frame=0; // Video
float time_frame=0; // Timer
int eof=0;
@@ -1346,9 +1346,8 @@ if(1)
if(verbose>1)printf("### A:%8.3f (%8.3f) V:%8.3f A-V:%7.4f \n",a_pts,a_pts-audio_delay-delay,v_pts,(a_pts-delay-audio_delay)-v_pts);
- if(frame_corr_num==1){
- float x=frame_correction;
if(delay_corrected){
+ float x=(a_pts-delay-audio_delay)-v_pts;
// printf("A:%6.1f V:%6.1f A-V:%7.3f",a_pts-audio_delay-delay,v_pts,x);
printf("A:%6.1f (%6.1f) V:%6.1f A-V:%7.3f",a_pts,a_pts-audio_delay-delay,v_pts,x);
x*=0.1f;
@@ -1368,18 +1367,11 @@ if(1)
);
fflush(stdout);
}
- frame_corr_num=0; frame_correction=0;
- }
-
- if(frame_corr_num>=0) frame_correction+=(a_pts-delay-audio_delay)-v_pts;
} else {
// No audio:
- //if(d_video->pts)
- float v_pts=d_video->pts;
- if(frame_corr_num==5){
-// printf("A: --- V:%6.1f \r",v_pts);
- printf("V:%6.1f %3d %2d%% %2d%% %3.1f%% \r",v_pts,
+
+ printf("V:%6.1f %3d %2d%% %2d%% %3.1f%% \r",d_video->pts,
(int)sh_video->num_frames,
(sh_video->timer>0.5)?(int)(100.0*video_time_usage/(double)sh_video->timer):0,
(sh_video->timer>0.5)?(int)(100.0*vout_time_usage/(double)sh_video->timer):0,
@@ -1387,10 +1379,8 @@ if(1)
);
fflush(stdout);
- frame_corr_num=0;
- }
+
}
- ++frame_corr_num;
#endif
if(osd_visible){
@@ -1546,10 +1536,8 @@ if(1)
}
}
- c_total=0; // kell ez?
+ c_total=0;
max_pts_correction=0.1;
- frame_corr_num=0; // -5 FIXME!!!
- frame_correction=0;
force_redraw=5;
audio_time_usage=0; video_time_usage=0; vout_time_usage=0;