Commit b568eeba authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3ea5f64f'

* commit '3ea5f64f':
  ansi: fix possible use of uninitialized variables

Conflicts:
	libavcodec/ansi.c

Only partially merged, ffmpeg is not affected by this.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b6413cdc 3ea5f64f
......@@ -182,7 +182,10 @@ static void draw_char(AVCodecContext *avctx, int c)
static int execute_code(AVCodecContext * avctx, int c)
{
AnsiContext *s = avctx->priv_data;
int ret, i, width, height;
int ret, i;
int width = 0;
int height = 0;
switch(c) {
case 'A': //Cursor Up
s->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment