Mercurial > mplayer.hg
changeset 8598:824481376632
"MPlayer does the right thing, presents frame 9 for 1.1 seconds, and continues
with frame 20. MEncoder calculates the right "frame_time", but duplicates the
frame following the gap, i.e. frame 20 is presented for 1.1 seconds."
patch by Jan Kritzner <kritzner@i4.informatik.rwth-aachen.de>
author | arpi |
---|---|
date | Sat, 28 Dec 2002 12:51:05 +0000 |
parents | 17f29e0ffd41 |
children | bdb4d5f33cf5 |
files | mencoder.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Sat Dec 28 12:40:59 2002 +0000 +++ b/mencoder.c Sat Dec 28 12:51:05 2002 +0000 @@ -1017,6 +1017,8 @@ if(in_size<0){ at_eof=1; break; } sh_video->timer+=frame_time; ++decoded_frameno; + v_timer_corr-=frame_time-(float)mux_v->h.dwScale/mux_v->h.dwRate; + if(demuxer2){ // 3-pass encoding, read control file (frameno.avi) // find our frame: while(next_frameno<decoded_frameno){ @@ -1070,8 +1072,6 @@ } // demuxer2 -v_timer_corr-=frame_time-(float)mux_v->h.dwScale/mux_v->h.dwRate; - ptimer_start = GetTimerMS(); switch(mux_v->codec){