[FFmpeg-cvslog] vsrc_buffer: fix check from 7ae7c41.

Anton Khirnov git at videolan.org
Sat Apr 14 22:52:18 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Apr 14 12:49:27 2012 +0200| [7bf9e3391fa21d90ff283fc03a12287fe73db9e8] | committer: Anton Khirnov

vsrc_buffer: fix check from 7ae7c41.

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

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

 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 ffmpeg-cvslog mailing list