From d587fbb676a944f874b22baa3065fb8ca93d37a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 9 Jan 2016 12:37:30 +0100 Subject: [PATCH] lavc/ccaption_dec: fix mixed declarations and code warning --- libavcodec/ccaption_dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: