aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-06-16 00:10:57 +0200
committerPaul B Mahol <onemda@gmail.com>2020-06-16 17:11:38 +0200
commit3615b5869309266b8da89f0492d6226e2510392a (patch)
treed44c9075c9829b00249c2224005b3d188a81ca5a
parent276dfa9d91ee50183824612803891b7d066e8f00 (diff)
downloadffmpeg-3615b5869309266b8da89f0492d6226e2510392a.tar.gz
avcodec/ccaption_dec: remove pts parameter from handle_char()
-rw-r--r--libavcodec/ccaption_dec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index a953181e53..6636043968 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -653,7 +653,7 @@ static void handle_delete_end_of_row(CCaptionSubContext *ctx)
write_char(ctx, screen, 0);
}
-static void handle_char(CCaptionSubContext *ctx, char hi, char lo, int64_t pts)
+static void handle_char(CCaptionSubContext *ctx, char hi, char lo)
{
struct Screen *screen = get_writing_screen(ctx);
@@ -766,16 +766,16 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
}
} else if (hi >= 0x11 && hi <= 0x13) {
/* Special characters */
- handle_char(ctx, hi, lo, pts);
+ handle_char(ctx, hi, lo);
} else if (hi >= 0x20) {
/* Standard characters (always in pairs) */
- handle_char(ctx, hi, lo, pts);
+ handle_char(ctx, hi, lo);
ctx->prev_cmd[0] = ctx->prev_cmd[1] = 0;
} else if (hi == 0x17 && lo >= 0x21 && lo <= 0x23) {
int i;
/* Tab offsets (spacing) */
for (i = 0; i < lo - 0x20; i++) {
- handle_char(ctx, ' ', 0, pts);
+ handle_char(ctx, ' ', 0);
}
} else {
/* Ignoring all other non data code */