[FFmpeg-cvslog] vsrc_buffer: propagate avfilter_open() error code

Stefano Sabatini git at videolan.org
Thu May 19 23:33:08 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Fri May 13 18:09:47 2011 +0200| [509b32cf5d5656473e277ac43dbb2ce9da66bff2] | committer: Stefano Sabatini

vsrc_buffer: propagate avfilter_open() error code

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

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

diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index b41007c..effc232 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -69,8 +69,8 @@ int av_vsrc_buffer_add_video_buffer_ref2(AVFilterContext *buffer_filter, AVFilte
             AVFilter *f = avfilter_get_by_name("scale");
 
             av_log(buffer_filter, AV_LOG_INFO, "Inserting scaler filter\n");
-            if (avfilter_open(&scale, f, "Input equalizer") < 0)
-                return -1;
+            if ((ret = avfilter_open(&scale, f, "Input equalizer")) < 0)
+                return ret;
 
             if ((ret = avfilter_init_filter(scale, c->sws_param, NULL)) < 0) {
                 avfilter_free(scale);



More information about the ffmpeg-cvslog mailing list