mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
af_amix: only consider negative return codes as errors.
This commit is contained in:
parent
53ddd43f0c
commit
428b369804
1 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ static int request_samples(AVFilterContext *ctx, int min_samples)
|
|||
s->input_state[i] = INPUT_OFF;
|
||||
continue;
|
||||
}
|
||||
} else if (ret)
|
||||
} else if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -422,7 +422,7 @@ static int request_frame(AVFilterLink *outlink)
|
|||
return AVERROR_EOF;
|
||||
else
|
||||
return AVERROR(EAGAIN);
|
||||
} else if (ret)
|
||||
} else if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
av_assert0(s->frame_list->nb_frames > 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue