aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vbidata.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vbidata.c b/src/vbidata.c
index 6b55fce..69e198f 100644
--- a/src/vbidata.c
+++ b/src/vbidata.c
@@ -600,7 +600,10 @@ int ProcessLine( vbidata_t *vbi, uint8_t *s, int bottom )
return 0;
}
- if( vbi->vs && vbi->enabled && b1 >= 0x10 && b1 <= 0x1F && b2 >= 0x20 && b2 <= 0x7F ) {
+ if( vbi->vs && vbi->enabled && b1 >= 0x10 && b1 <= 0x1F && b2 >= 0x20 && b2 <= 0x7F
+ /* Double-byte characters are distinguishable from control codes by
+ having bit 6 clear and bit 4 set. */
+ && (b2 & 0x50) != 0x10 ) {
int code;
if( (b2 & 64) ) {
/* Preamble Code */

Privacy Policy