lavc/ccaption_dec: fix mixed declarations and code warning
authorClément Bœsch <u@pkh.me>
Sat, 9 Jan 2016 11:37:30 +0000 (12:37 +0100)
committerClément Bœsch <u@pkh.me>
Sat, 9 Jan 2016 11:37:30 +0000 (12:37 +0100)
libavcodec/ccaption_dec.c

index b81c957..6e26342 100644 (file)
@@ -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: