mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
fftools/ffmpeg_sched: simplify failure path in sch_dec_send()
This commit is contained in:
parent
a2fc86378a
commit
a00765fcbe
1 changed files with 2 additions and 4 deletions
|
|
@ -2035,13 +2035,11 @@ int sch_dec_send(Scheduler *sch, unsigned dec_idx, AVFrame *frame)
|
||||||
ret = 0;
|
ret = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
goto finish;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
finish:
|
return (nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
|
||||||
return ret < 0 ? ret :
|
|
||||||
(nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dec_done(Scheduler *sch, unsigned dec_idx)
|
static int dec_done(Scheduler *sch, unsigned dec_idx)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue