diff mbox series

[FFmpeg-devel] fftools/ffmpeg_sched: Remove set-but-unused variable

Message ID AS8P250MB0744D8C5295130D582E777788F2A2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 78e2be23774c41941462dd6e54229825ea9011f2
Headers show
Series [FFmpeg-devel] fftools/ffmpeg_sched: Remove set-but-unused variable | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 13, 2024, 9:50 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 fftools/ffmpeg_sched.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Andreas Rheinhardt March 14, 2024, 9:21 p.m. UTC | #1
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  fftools/ffmpeg_sched.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c
> index d1fb942c34..f739066921 100644
> --- a/fftools/ffmpeg_sched.c
> +++ b/fftools/ffmpeg_sched.c
> @@ -2310,7 +2310,6 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt)
>  {
>      SchEnc *enc;
>      int ret;
> -    unsigned nb_done = 0;
>  
>      av_assert0(enc_idx < sch->nb_enc);
>      enc = &sch->enc[enc_idx];
> @@ -2332,7 +2331,6 @@ int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt)
>          if (ret < 0) {
>              av_packet_unref(to_send);
>              if (ret == AVERROR_EOF) {
> -                nb_done++;
>                  ret = 0;
>                  continue;
>              }

Will apply.

- Andreas
diff mbox series

Patch

diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c
index d1fb942c34..f739066921 100644
--- a/fftools/ffmpeg_sched.c
+++ b/fftools/ffmpeg_sched.c
@@ -2310,7 +2310,6 @@  int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt)
 {
     SchEnc *enc;
     int ret;
-    unsigned nb_done = 0;
 
     av_assert0(enc_idx < sch->nb_enc);
     enc = &sch->enc[enc_idx];
@@ -2332,7 +2331,6 @@  int sch_enc_send(Scheduler *sch, unsigned enc_idx, AVPacket *pkt)
         if (ret < 0) {
             av_packet_unref(to_send);
             if (ret == AVERROR_EOF) {
-                nb_done++;
                 ret = 0;
                 continue;
             }