Browse Source

avcodec: remove some dead assignments

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n4.3
Marton Balint 6 years ago
parent
commit
3a09dbdb4a
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      libavcodec/bsf.c
  2. +0
    -1
      libavcodec/decode.c

+ 0
- 1
libavcodec/bsf.c View 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); ret = av_bsf_receive_packet(lst->bsfs[lst->idx-1], out);
if (ret == AVERROR(EAGAIN)) { if (ret == AVERROR(EAGAIN)) {
/* no more packets from idx-1, try with previous */ /* no more packets from idx-1, try with previous */
ret = 0;
lst->idx--; lst->idx--;
continue; continue;
} else if (ret == AVERROR_EOF) { } else if (ret == AVERROR_EOF) {


+ 0
- 1
libavcodec/decode.c View File

@@ -300,7 +300,6 @@ static int bsfs_poll(AVCodecContext *avctx, AVPacket *pkt)
ret = av_bsf_receive_packet(s->bsfs[idx], pkt); ret = av_bsf_receive_packet(s->bsfs[idx], pkt);
if (ret == AVERROR(EAGAIN)) { if (ret == AVERROR(EAGAIN)) {
/* no packets available, try the next filter up the chain */ /* no packets available, try the next filter up the chain */
ret = 0;
idx--; idx--;
continue; continue;
} else if (ret < 0 && ret != AVERROR_EOF) { } else if (ret < 0 && ret != AVERROR_EOF) {


Loading…
Cancel
Save