[FFmpeg-cvslog] sbgdec: change -1 into AVERROR(EINVAL).

Nicolas George git at videolan.org
Sun Dec 18 09:34:57 CET 2011


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Dec 18 09:33:09 2011 +0100| [6d7b50117a886f84780247342de52648ffaacf6e] | committer: Nicolas George

sbgdec: change -1 into AVERROR(EINVAL).

This is not as accurate as ELOOP, but there is an explicit error message
just before anyway.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d7b50117a886f84780247342de52648ffaacf6e
---

 libavformat/sbgdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index b1950a3..65a0839 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -948,7 +948,7 @@ static int expand_tseq(void *log, struct sbg_script *s, int *nb_ev_max,
     if (tseq->lock++) {
         av_log(log, 16, "Recursion loop on \"%.*s\"\n",
                tseq->name_len, tseq->name);
-        return -1;
+        return AVERROR(EINVAL);
     }
     t0 += tseq->ts.t;
     for (i = 0; i < s->nb_def; i++) {



More information about the ffmpeg-cvslog mailing list