diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-14 14:29:53 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-01-06 13:31:39 +0100 |
commit | b3b17f780029150e71ec7db7e7b1fa42e49d3865 (patch) | |
tree | 3df29ea1d87996a4715188fce91e7525f81b50c9 /libavcodec | |
parent | b622e2b540ea12207b8704822530cf325c2be13a (diff) | |
download | ffmpeg-b3b17f780029150e71ec7db7e7b1fa42e49d3865.tar.gz |
ansi: return a meaningful error code
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c index 861d4e57e4..0b2e93d74b 100644 --- a/libavcodec/ansi.c +++ b/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; |