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"
This commit is contained in:
kdrag0n 2020-01-22 08:01:53 -08:00 committed by Carlos Fernandez Sanz
parent 19de49763a
commit 1764aa1f92

View File

@ -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));