# HG changeset patch # User arpi # Date 1003849095 0 # Node ID 4122de6622b252c21ccd9bab0d7a77c3f45b123e # Parent 2280c8410f6bd54f90bca9bdf2789f888c19324d switch back to old timing code until new is bugfixed diff -r 2280c8410f6b -r 4122de6622b2 libmpeg2/header.c --- 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 ) {