diff options
author | Clément Bœsch <u@pkh.me> | 2016-01-09 12:37:30 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-01-09 12:37:30 +0100 |
commit | d587fbb676a944f874b22baa3065fb8ca93d37a2 (patch) | |
tree | 1e1b6ea39f24ccaef604e07412b08d82fc539933 | |
parent | 5ae07914d047dd406b4953cfb7a1e091f7188381 (diff) |
lavc/ccaption_dec: fix mixed declarations and code warning
-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 b81c957145..6e26342c82 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -300,10 +300,11 @@ static int capture_screen(CCaptionSubContext *ctx) j++; for (; j < SCREEN_COLUMNS; j++) { + const char *e_tag = "", *s_tag = ""; + if (row[j] == 0) break; - const char *e_tag = "", *s_tag = ""; if (prev_font != font[j]) { switch (prev_font) { case CCFONT_ITALICS: |