sbgdec: change -1 into AVERROR(EINVAL).

This is not as accurate as ELOOP, but there is an explicit error message
just before anyway.
This commit is contained in:
Nicolas George 2011-12-18 09:33:09 +01:00
parent 4734fb0ece
commit 6d7b50117a

View File

@ -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++) {