diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-13 18:09:47 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 23:15:33 +0200 |
commit | 509b32cf5d5656473e277ac43dbb2ce9da66bff2 (patch) | |
tree | cc8bc93bf176d1355dd6ac2cbe2572e810c2f608 | |
parent | 3799805e560f168811808ee0ba3befcb6fddc50e (diff) | |
download | ffmpeg-509b32cf5d5656473e277ac43dbb2ce9da66bff2.tar.gz |
vsrc_buffer: propagate avfilter_open() error code
-rw-r--r-- | 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 b41007c0da..effc232d5e 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); |