aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2016-01-14 13:55:07 -0800
committerClément Bœsch <u@pkh.me>2016-01-14 23:13:09 +0100
commit9027806e3cf6b8d2693f74c57abfd88c8c2a9008 (patch)
treed6a714e0b50848d86ed87ddedc287ca01dd6b12d
parentfdbe5cd5c5234772f1b7624a790439924a91ced2 (diff)
downloadffmpeg-9027806e3cf6b8d2693f74c57abfd88c8c2a9008.tar.gz
lavc/ccaption_dec: clean up whitespace
-rw-r--r--libavcodec/ccaption_dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index ca08d48f8e..3e335804fa 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -297,7 +297,6 @@ static void roll_up(CCaptionSubContext *ctx)
for (i = 0; i < ctx->cursor_row - keep_lines; i++)
UNSET_FLAG(screen->row_used, i);
-
for (i = 0; i < keep_lines && screen->row_used; i++) {
const int i_row = ctx->cursor_row - keep_lines + i + 1;
@@ -306,8 +305,8 @@ static void roll_up(CCaptionSubContext *ctx)
memcpy(screen->fonts[i_row], screen->fonts[i_row+1], SCREEN_COLUMNS);
if (CHECK_FLAG(screen->row_used, i_row + 1))
SET_FLAG(screen->row_used, i_row);
-
}
+
UNSET_FLAG(screen->row_used, ctx->cursor_row);
}