author | Pengfei Liu <pengfei.liu@amlogic.com> | 2017-06-06 07:53:39 (GMT) |
---|---|---|
committer | Pengfei Liu <pengfei.liu@amlogic.com> | 2017-06-06 07:53:39 (GMT) |
commit | d5cac95e32d8e61793daab8e8da5a6f4204907a9 (patch) | |
tree | 1c30be4011c62fb988912dcf11e32cae07f693cb | |
parent | 0337d35737a852b45266684b373f6a0fe7f537bd (diff) | |
download | libzvbi-d5cac95e32d8e61793daab8e8da5a6f4204907a9.zip libzvbi-d5cac95e32d8e61793daab8e8da5a6f4204907a9.tar.gz libzvbi-d5cac95e32d8e61793daab8e8da5a6f4204907a9.tar.bz2 |
PD#127308: cc: fixed channel update bug on roll-up mode
-rwxr-xr-x | src/caption.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caption.c b/src/caption.c index 90e3937..d6de9b6 100755 --- a/src/caption.c +++ b/src/caption.c @@ -806,7 +806,7 @@ roll_up(vbi_page *pg, int first_row, int last_row) static inline void update(cc_channel *ch) { - vbi_char *acp = ch->line - ch->pg[0].text + ch->pg[1].text; + vbi_char *acp = ch->line - ch->pg[ch->hidden].text + ch->pg[ch->hidden^1].text; memcpy(acp, ch->line, sizeof(*acp) * COLUMNS); } |