diff options
author | Matthieu Bouron <matthieu.bouron@smartjog.com> | 2012-04-26 17:28:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-27 22:11:00 +0200 |
commit | 73c1e3baadb45b693a31b67f8b04e9c147ce3da1 (patch) | |
tree | 2e1b017175d32d2ee7160b5d4723ac57702ab11f | |
parent | 6b55aab01a5c2e4c9f2851fdb9b7583f184b5241 (diff) | |
download | ffmpeg-73c1e3baadb45b693a31b67f8b04e9c147ce3da1.tar.gz |
asrc_abuffer: return EAGAIN if no frame is available
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/asrc_abuffer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavfilter/asrc_abuffer.c b/libavfilter/asrc_abuffer.c index 5eca785f1a..eab83e2b3d 100644 --- a/libavfilter/asrc_abuffer.c +++ b/libavfilter/asrc_abuffer.c @@ -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)); |