History

avcodec/ccaption_dec: implement tab offset commands

Aman Gupta committed 10 years ago

Commit 4448f161 parent 0a72b691 file · +5 −0Browse files

Unified · Split

libavcodec/ccaption_dec.c+5−0
@@ -713,6 +713,11 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint · 712 unmodified lines
713 /* Standard characters (always in pairs) */713 /* Standard characters (always in pairs) */
714 handle_char(ctx, hi, lo, pts);714 handle_char(ctx, hi, lo, pts);
715 ctx->prev_cmd[0] = ctx->prev_cmd[1] = 0;715 ctx->prev_cmd[0] = ctx->prev_cmd[1] = 0;
716 } else if (hi == 0x17 && lo >= 0x21 && lo <= 0x23) {
717 /* Tab offsets (spacing) */
718 for (int i = 0; i < lo - 0x20; i++) {
719 handle_char(ctx, ' ', 0, pts);
720 }
716 } else {721 } else {
717 /* Ignoring all other non data code */722 /* Ignoring all other non data code */
718 ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);723 ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t