From 1764aa1f92a2c3c201d7f37b67ee18b551b982ef Mon Sep 17 00:00:00 2001 From: kdrag0n Date: Wed, 22 Jan 2020 08:01:53 -0800 Subject: [PATCH] scc: Write all characters in pairs (#1208) This is how every example appears to be structured. MPV doesn't display anything without this. Before: "e5 f2 e5 20" After: "e5f2 e520" --- src/lib_ccx/ccx_encoders_scc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_ccx/ccx_encoders_scc.c b/src/lib_ccx/ccx_encoders_scc.c index 37ac07fc..0408d7b2 100644 --- a/src/lib_ccx/ccx_encoders_scc.c +++ b/src/lib_ccx/ccx_encoders_scc.c @@ -1131,7 +1131,7 @@ void write_character(const int fd, const unsigned char character, const bool dis } else { - if (*bytes_written) + if (*bytes_written % 2 == 1) write(fd, " ", 1); fdprintf(fd, "%02x", odd_parity(character));