[libav-commits] vsrc_buffer: fix check from 7ae7c41.

Anton Khirnov git at libav.org
Sat Apr 14 18:58:27 CEST 2012


Module: libav
Branch: master
Commit: 7bf9e3391fa21d90ff283fc03a12287fe73db9e8

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Sat Apr 14 12:49:27 2012 +0200

vsrc_buffer: fix check from 7ae7c41.

The user submitted variable in this function is frame, not buf.

---

 libavfilter/vsrc_buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 46a18df..742943a 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -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)



More information about the libav-commits mailing list