vsrc_buffer: fix check from 7ae7c41.
authorAnton Khirnov <anton@khirnov.net>
Sat, 14 Apr 2012 10:49:27 +0000 (12:49 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 14 Apr 2012 16:58:20 +0000 (18:58 +0200)
The user submitted variable in this function is frame, not buf.

libavfilter/vsrc_buffer.c

index 46a18df..742943a 100644 (file)
@@ -51,7 +51,7 @@ int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame,
     AVFilterBufferRef *buf;
     int ret;
 
-    if (!buf) {
+    if (!frame) {
         c->eof = 1;
         return 0;
     } else if (c->eof)