Browse code

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.

Nicolas George authored on 2013/04/14 20:51:42
Showing 1 changed files
... ...
@@ -123,6 +123,8 @@ static int attribute_align_arg av_buffersrc_add_frame_internal(AVFilterContext *
123 123
     AVFrame *copy;
124 124
     int ret;
125 125
 
126
+    s->nb_failed_requests = 0;
127
+
126 128
     if (!frame) {
127 129
         s->eof = 1;
128 130
         return 0;