comparison libmpdemux/muxer_mpeg.c @ 17603:22ced3e0a4aa

delay rff by 6, not 3 frames, so the rff will be in the middle of the 12 frames sequence
author nicodvb
date Sun, 12 Feb 2006 11:47:36 +0000
parents 6fa1149d8c80
children 8f2e94a4a4c1
comparison
equal deleted inserted replaced
17602:719bd2042c24 17603:22ced3e0a4aa
1859 //current sequence unpatched 1859 //current sequence unpatched
1860 if(rest2 == 486 || rest2 == 978) 1860 if(rest2 == 486 || rest2 == 978)
1861 { 1861 {
1862 if(rest1) 1862 if(rest1)
1863 { 1863 {
1864 vpriv->delay_rff = 4; //delay of 3 frames the setting, so we don't have 2 consecutive rff 1864 //delay the setting by 6 frames, so we don't have 2 consecutive rff
1865 //and the transition will be smoother (halfway in the 12-frames sequence)
1866 vpriv->delay_rff = 7;
1865 mp_msg(MSGT_MUXER, MSGL_V, "\r\nDELAYED: %d\r\n", rest2); 1867 mp_msg(MSGT_MUXER, MSGL_V, "\r\nDELAYED: %d\r\n", rest2);
1866 } 1868 }
1867 else 1869 else
1868 rff = 2; 1870 rff = 2;
1869 } 1871 }