lavc/ccaption_dec: do not ignore repeated character commands
authorAman Gupta <aman@tmm1.net>
Mon, 15 Feb 2016 02:11:53 +0000 (18:11 -0800)
committerClément Bœsch <u@pkh.me>
Wed, 17 Feb 2016 20:32:18 +0000 (21:32 +0100)
commit2f26b67d557f56e01f8a3efa199a832ad8ce70b0
tree214af4ea65b2c9393b78281f80aeab6265e5aefb
parentf09449daa4f232a932d538f38029cab8d0e7a13f
lavc/ccaption_dec: do not ignore repeated character commands

control codes in a cc stream can be repeated, and must be ignored.
however, repeated characters must not be ignored. the code attempted to
wipe prev_cmd in handle_char to allow repeated characters to be
processed, but prev_cmd would previously get reset _after_ handle_char()

i also moved the prev_cmd reset out from handle_char() so it can be
re-used for special character sets, which _must_ be ignored when
repeated.
libavcodec/ccaption_dec.c