[FFmpeg-cvslog] ansi: return a meaningful error code
Anton Khirnov
git at videolan.org
Sun Jan 6 23:55:15 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Nov 14 14:29:53 2012 +0100| [b3b17f780029150e71ec7db7e7b1fa42e49d3865] | committer: Anton Khirnov
ansi: return a meaningful error code
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3b17f780029150e71ec7db7e7b1fa42e49d3865
---
libavcodec/ansi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c
index 861d4e5..0b2e93d 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;
More information about the ffmpeg-cvslog
mailing list