diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-06 02:23:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-11 08:23:42 +0100 |
commit | fd0b8d598669cb1426cc9819aeb1eb74a0b6281a (patch) | |
tree | 4a27bf91622ca56803e73fb97e5249a6430602fc | |
parent | ed83f97235b6b3bd2cf62830bba00dfd7327d389 (diff) | |
download | ffmpeg-fd0b8d598669cb1426cc9819aeb1eb74a0b6281a.tar.gz |
ansi: Fix use of uninitalized width/height warning.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ansi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c index ebcc288539..1128d6f94c 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; |