Skip to content

Commit

Permalink
ansi: return a meaningful error code
Browse files Browse the repository at this point in the history
  • Loading branch information
elenril committed Jan 6, 2013
1 parent b622e2b commit b3b17f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavcodec/ansi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3b17f7

Please sign in to comment.