switch back to old timing code until new is bugfixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2427 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-10-23 14:58:15 +00:00
parent 3781f455ea
commit 813566e40b
1 changed files with 8 additions and 5 deletions

View File

@ -203,22 +203,25 @@ static int header_process_picture_coding_extension (picture_t * picture, uint8_t
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 )
{