mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
fftools/ffmpeg_sched: simplify failure path in sch_dec_send()
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user