# HG changeset patch # User reimar # Date 1289246942 0 # Node ID 796cd767b024513cf417d0871272227a039cb095 # Parent b2546300b48b4b02a0c70beecab553e23b235cd3 Fix one -subcc sample. diff -r b2546300b48b -r 796cd767b024 sub/sub_cc.c --- a/sub/sub_cc.c Mon Nov 08 19:32:02 2010 +0000 +++ b/sub/sub_cc.c Mon Nov 08 20:09:02 2010 +0000 @@ -263,8 +263,9 @@ * repeat * * 0xfe starts 2 byte sequence of unknown purpose. It might denote - * field #2 in line 21 of the VBI. We'll ignore it for the - * time being. + * field #2 in line 21 of the VBI. + * Treating it identical of 0xff fixes + * http://samples.mplayerhq.hu/MPEG-VOB/ClosedCaptions/Starship_Troopers.vob * * 0xff starts 2 byte EIA-608 sequence, field #1 in line 21 of the VBI. * Followed by a 3-code triplet that starts either with 0xff or @@ -308,10 +309,6 @@ switch (cc_code) { case 0xfe: - /* expect 2 byte encoding (perhaps CC3, CC4?) */ - /* ignore for time being */ - break; - case 0xff: odd_offset ^= 1; if (odd_offset != selected_channel() >> 1)