[FFmpeg-cvslog] fftools/ffmpeg_sched: Remove dead assignments in sch_dec_send()

Michael Niedermayer git at videolan.org
Tue Jul 2 23:00:56 EEST 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Apr 28 01:02:27 2024 +0200| [ed364444f16a8b5a2283102f6af4b3cc771edeb2] | committer: Michael Niedermayer

fftools/ffmpeg_sched: Remove dead assignments in sch_dec_send()

Fixes: CID1592383 Unused value

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed364444f16a8b5a2283102f6af4b3cc771edeb2
---

 fftools/ffmpeg_sched.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c
index e58b00ea97..cff824340b 100644
--- a/fftools/ffmpeg_sched.c
+++ b/fftools/ffmpeg_sched.c
@@ -2174,7 +2174,7 @@ finish:
 int sch_dec_send(Scheduler *sch, unsigned dec_idx, AVFrame *frame)
 {
     SchDec *dec;
-    int ret = 0;
+    int ret;
     unsigned nb_done = 0;
 
     av_assert0(dec_idx < sch->nb_dec);
@@ -2201,7 +2201,6 @@ int sch_dec_send(Scheduler *sch, unsigned dec_idx, AVFrame *frame)
             av_frame_unref(to_send);
             if (ret == AVERROR_EOF) {
                 nb_done++;
-                ret = 0;
                 continue;
             }
             return ret;



More information about the ffmpeg-cvslog mailing list