[FFmpeg-cvslog] lavfi/buffersrc: fix failed requests count.

Nicolas George git at videolan.org
Wed Apr 17 21:37:52 CEST 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Apr 14 13:51:42 2013 +0200| [e3e6aa7afb826401babb294606e86ca08f708c72] | committer: Nicolas George

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3e6aa7afb826401babb294606e86ca08f708c72
---

 libavfilter/buffersrc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 3e05fb3..5d834b5 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;



More information about the ffmpeg-cvslog mailing list