mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
vsrc_buffer: return an error code if no frames are available
Also decrease the log level of the corresponding message to WARNING, since the error is not fatal.
This commit is contained in:
parent
6b5e182540
commit
cf06e3e4dd
@ -180,9 +180,9 @@ static int request_frame(AVFilterLink *link)
|
||||
BufferSourceContext *c = link->src->priv;
|
||||
|
||||
if (!c->picref) {
|
||||
av_log(link->src, AV_LOG_ERROR,
|
||||
av_log(link->src, AV_LOG_WARNING,
|
||||
"request_frame() called with no available frame!\n");
|
||||
//return -1;
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
avfilter_start_frame(link, avfilter_ref_buffer(c->picref, ~0));
|
||||
|
Loading…
Reference in New Issue
Block a user