[FFmpeg-cvslog] ansi: Fix use of uninitalized width/height warning.

Michael Niedermayer git at videolan.org
Sat Feb 11 08:34:00 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb  6 02:23:02 2012 +0100| [fd0b8d598669cb1426cc9819aeb1eb74a0b6281a] | committer: Michael Niedermayer

ansi: Fix use of uninitalized width/height warning.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/ansi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c
index ebcc288..1128d6f 100644
--- a/libavcodec/ansi.c
+++ b/libavcodec/ansi.c
@@ -182,6 +182,8 @@ static int execute_code(AVCodecContext * avctx, int c)
     case 'l': //reset screen mode
         if (s->nb_args < 2)
             s->args[0] = DEFAULT_SCREEN_MODE;
+        width = avctx->width;
+        height = avctx->height;
         switch(s->args[0]) {
         case 0: case 1: case 4: case 5: case 13: case 19: //320x200 (25 rows)
             s->font = ff_cga_font;



More information about the ffmpeg-cvslog mailing list