Mercurial > mplayer.hg
changeset 2426:4122de6622b2
switch back to old timing code until new is bugfixed
author | arpi |
---|---|
date | Tue, 23 Oct 2001 14:58:15 +0000 |
parents | 2280c8410f6b |
children | f95598eeb30c |
files | libmpeg2/header.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpeg2/header.c Tue Oct 23 14:56:58 2001 +0000 +++ b/libmpeg2/header.c Tue Oct 23 14:58:15 2001 +0000 @@ -203,22 +203,25 @@ picture->repeat_first_field = (buffer[3] >> 1) & 1; picture->progressive_frame = buffer[4] >> 7; -#if 0 +#if 1 // repeat_first implementation by A'rpi/ESP-team, based on libmpeg3: - if(picture->repeat_count>=100) picture->repeat_count=0; + picture->display_time=100; if(picture->repeat_first_field){ if(picture->progressive_sequence){ if(picture->top_field_first) - picture->repeat_count+=200; + picture->display_time+=200; else - picture->repeat_count+=100; + picture->display_time+=100; } else if(picture->progressive_frame){ - picture->repeat_count+=50; + picture->display_time+=50; } } //repeat_count=display_time-100% #else + +// buggy with file ftp://mplayerhq.hu/MPlayer/incoming/twc-shaolin_soccer-svcd-sample.mpg + // repeat_first implemantation by iive, based on A'rpi/ESP-team and libmpeg3 if( picture->progressive_sequence == 1 ) {