mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 02:52:10 +00:00
fixed a wrong display_time value
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2471 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0b1320ab48
commit
e462473560
@ -203,7 +203,7 @@ 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 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 @@ static int header_process_picture_coding_extension (picture_t * picture, uint8_t
|
||||
//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 @@ static int header_process_picture_coding_extension (picture_t * picture, uint8_t
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user