diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-28 02:33:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-28 02:33:03 +0200 |
commit | 6cc4c422265a647ffe1c2121ef69cbc3173d596e (patch) | |
tree | c46ab65a0860213f7f556370dc099aba1dbb2061 /libavcodec/ccaption_dec.c | |
parent | 4448f16ef51b6b30112df5e27642ea3a84be75ff (diff) | |
download | ffmpeg-6cc4c422265a647ffe1c2121ef69cbc3173d596e.tar.gz |
avcodec/ccaption_dec: Fix mixed declaration and statement.
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ccaption_dec.c')
-rw-r--r-- | libavcodec/ccaption_dec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 3734eca580..f831399ee9 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -714,8 +714,9 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint 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 (int i = 0; i < lo - 0x20; i++) { + for (i = 0; i < lo - 0x20; i++) { handle_char(ctx, ' ', 0, pts); } } else { |