ansi: return a meaningful error code

pull/8/head
Anton Khirnov 12 years ago
parent b622e2b540
commit b3b17f7800
  1. 4
      libavcodec/ansi.c

@ -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;

Loading…
Cancel
Save