mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-21 06:50:44 +00:00
fftools/ffmpeg_sched: Explicitly return 0 on sch_enc_send() success
Do not return the return value of the last enc_send_to_dst() call, as this would treat the last call differently from the earlier calls; furthermore, sch_enc_send() explicitly documents to always return 0 on success. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b89ee26539
commit
432e287e27
@ -2344,15 +2344,13 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt)
|
||||
ret = enc_send_to_dst(sch, enc->dst[i], finished, to_send);
|
||||
if (ret < 0) {
|
||||
av_packet_unref(to_send);
|
||||
if (ret == AVERROR_EOF) {
|
||||
ret = 0;
|
||||
if (ret == AVERROR_EOF)
|
||||
continue;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int enc_done(Scheduler *sch, unsigned enc_idx)
|
||||
|
Loading…
Reference in New Issue
Block a user