[FFmpeg-cvslog] lavc/ccaption_dec: fix mixed declarations and code warning

Clément Bœsch git at videolan.org
Sat Jan 9 12:37:47 CET 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jan  9 12:37:30 2016 +0100| [d587fbb676a944f874b22baa3065fb8ca93d37a2] | committer: Clément Bœsch

lavc/ccaption_dec: fix mixed declarations and code warning

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d587fbb676a944f874b22baa3065fb8ca93d37a2
---

 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 b81c957..6e26342 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:



More information about the ffmpeg-cvslog mailing list