Commit b3b17f78 authored by Anton Khirnov's avatar Anton Khirnov

ansi: return a meaningful error code

parent b622e2b5
......@@ -401,8 +401,8 @@ static int decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_WARNING, "args overflow (%i)\n", s->nb_args);
if (s->nb_args < MAX_NB_ARGS && s->args[s->nb_args])
s->nb_args++;
if (execute_code(avctx, buf[0]) < 0)
return -1;
if ((ret = execute_code(avctx, buf[0])) < 0)
return ret;
s->state = STATE_NORMAL;
}
break;
......
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