diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-04-14 13:51:42 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-04-17 11:32:03 +0200 |
commit | e3e6aa7afb826401babb294606e86ca08f708c72 (patch) | |
tree | 2e8963725861448dc99754f04bf7f863da108ad8 /libavfilter/buffersrc.c | |
parent | e5644313c581a4e936d600a0f18b55988f6c9a57 (diff) | |
download | ffmpeg-e3e6aa7afb826401babb294606e86ca08f708c72.tar.gz |
lavfi/buffersrc: fix failed requests count.
The line was lost during the AVFrame transition.
It causes programs relying on the failed requests count,
especially ffmpeg, to add frames to the wrong input.
Fix trac ticket #2467.
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r-- | libavfilter/buffersrc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 3e05fb37e6..5d834b549c 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -123,6 +123,8 @@ static int attribute_align_arg av_buffersrc_add_frame_internal(AVFilterContext * AVFrame *copy; int ret; + s->nb_failed_requests = 0; + if (!frame) { s->eof = 1; return 0; |