Browse code

libavfilter/buffersrc: Do not fail hard on changes of input parameters.

Several filters support this already.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/10/17 06:52:53
Showing 1 changed files
... ...
@@ -64,8 +64,7 @@ typedef struct {
64 64
 
65 65
 #define CHECK_VIDEO_PARAM_CHANGE(s, c, width, height, format)\
66 66
     if (c->w != width || c->h != height || c->pix_fmt != format) {\
67
-        av_log(s, AV_LOG_ERROR, "Changing frame properties on the fly is not supported.\n");\
68
-        return AVERROR(EINVAL);\
67
+        av_log(s, AV_LOG_INFO, "Changing frame properties on the fly is not supported by all filters.\n");\
69 68
     }
70 69
 
71 70
 #define CHECK_AUDIO_PARAM_CHANGE(s, c, srate, ch_layout, format)\