]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ccaption_dec.c
Merge commit 'fa57059079190242517701120cfdccad93c866da'
[ffmpeg] / libavcodec / ccaption_dec.c
index 3b15149d79e8a42c19f02421e36f4304a0a90396..f831399ee9091b19e2bcabc59d7c8abe433196b0 100644 (file)
@@ -713,6 +713,12 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
         /* Standard characters (always in pairs) */
         handle_char(ctx, hi, lo, pts);
         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);
+        }
     } else {
         /* Ignoring all other non data code */
         ff_dlog(ctx, "Unknown command 0x%hhx 0x%hhx\n", hi, lo);