summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-16 23:52:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-17 00:06:12 +0200
commit6cbb8a450f16309b3d7a5260cfe3ac4bce00f93d (patch)
treeedce3d97a538c28212631a75a3a7d2b0deb815f4
parent3e0b29ccd075039d4494cafd4738bdf8322068b0 (diff)
libavfilter/buffersrc: Do not fail hard on changes of input parameters.
Several filters support this already. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/buffersrc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index b4b502aa6c..a88cc463da 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -64,8 +64,7 @@ typedef struct {
#define CHECK_VIDEO_PARAM_CHANGE(s, c, width, height, format)\
if (c->w != width || c->h != height || c->pix_fmt != format) {\
- av_log(s, AV_LOG_ERROR, "Changing frame properties on the fly is not supported.\n");\
- return AVERROR(EINVAL);\
+ av_log(s, AV_LOG_INFO, "Changing frame properties on the fly is not supported by all filters.\n");\
}
#define CHECK_AUDIO_PARAM_CHANGE(s, c, srate, ch_layout, format)\