changeset 2470:9af9aa14afbc

fixed a wrong display_time value
author iive
date Thu, 25 Oct 2001 16:02:17 +0000
parents 03abc2743ed6
children 6bf47f224789
files libmpeg2/header.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/header.c	Thu Oct 25 14:31:11 2001 +0000
+++ b/libmpeg2/header.c	Thu Oct 25 16:02:17 2001 +0000
@@ -203,7 +203,7 @@
     picture->repeat_first_field = (buffer[3] >> 1) & 1;
     picture->progressive_frame = buffer[4] >> 7;
 
-#if 1
+#if 0
     // repeat_first implementation by A'rpi/ESP-team, based on libmpeg3:
     picture->display_time=100;
     if(picture->repeat_first_field){
@@ -220,7 +220,6 @@
     //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 )
@@ -237,7 +236,7 @@
 	     picture->display_time=100;//2fields, interlaced in time
 	 else
 	 {
-	     if( picture->top_field_first == 0 ) picture->display_time=100;//reconstruct 2 fields
+	     if( picture->top_field_first == 0 ) picture->display_time=150;//reconstruct 2 fields
 	     else picture->display_time = 150;//reconstruct 3 fields
 	 }