fftools/ffmpeg_sched: simplify failure path in sch_dec_send()

release/7.0
Anton Khirnov 12 months ago
parent a2fc86378a
commit a00765fcbe
  1. 6
      fftools/ffmpeg_sched.c

@ -2035,13 +2035,11 @@ int sch_dec_send(Scheduler *sch, unsigned dec_idx, AVFrame *frame)
ret = 0;
continue;
}
goto finish;
return ret;
}
}
finish:
return ret < 0 ? ret :
(nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
return (nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
}
static int dec_done(Scheduler *sch, unsigned dec_idx)

Loading…
Cancel
Save