mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
asrc_abuffer: return EAGAIN if no frame is available
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6b55aab01a
commit
73c1e3baad
@ -334,11 +334,8 @@ static int request_frame(AVFilterLink *outlink)
|
||||
ABufferSourceContext *abuffer = outlink->src->priv;
|
||||
AVFilterBufferRef *samplesref;
|
||||
|
||||
if (!av_fifo_size(abuffer->fifo)) {
|
||||
av_log(outlink->src, AV_LOG_ERROR,
|
||||
"request_frame() called with no available frames!\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if (!av_fifo_size(abuffer->fifo))
|
||||
return AVERROR(EAGAIN);
|
||||
|
||||
av_fifo_generic_read(abuffer->fifo, &samplesref, sizeof(samplesref), NULL);
|
||||
avfilter_filter_samples(outlink, avfilter_ref_buffer(samplesref, ~0));
|
||||
|
Loading…
Reference in New Issue
Block a user