]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: remove some dead assignments
authorMarton Balint <cus@passwd.hu>
Sat, 17 Aug 2019 17:12:01 +0000 (19:12 +0200)
committerMarton Balint <cus@passwd.hu>
Thu, 22 Aug 2019 19:38:41 +0000 (21:38 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/bsf.c
libavcodec/decode.c

index 508130760335fa6d285e7262053d7a2cfc08681c..71915dea8519882b3a774b0d59839121530cad9f 100644 (file)
@@ -306,7 +306,6 @@ static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out)
             ret = av_bsf_receive_packet(lst->bsfs[lst->idx-1], out);
             if (ret == AVERROR(EAGAIN)) {
                 /* no more packets from idx-1, try with previous */
-                ret = 0;
                 lst->idx--;
                 continue;
             } else if (ret == AVERROR_EOF) {
index 6c31166ec28ae76c62834c66887885c2e4c8fc7f..cf9676e2acfef0319105fdc2e68da2f93494bf0f 100644 (file)
@@ -300,7 +300,6 @@ static int bsfs_poll(AVCodecContext *avctx, AVPacket *pkt)
         ret = av_bsf_receive_packet(s->bsfs[idx], pkt);
         if (ret == AVERROR(EAGAIN)) {
             /* no packets available, try the next filter up the chain */
-            ret = 0;
             idx--;
             continue;
         } else if (ret < 0 && ret != AVERROR_EOF) {