[FFmpeg-cvslog] libavfilter/buffersrc: Do not fail hard on changes of input parameters.

Michael Niedermayer git at videolan.org
Wed Oct 17 00:11:14 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 16 23:52:53 2012 +0200| [6cbb8a450f16309b3d7a5260cfe3ac4bce00f93d] | committer: Michael Niedermayer

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

Several filters support this already.

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

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

 libavfilter/buffersrc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index b4b502a..a88cc46 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)\



More information about the ffmpeg-cvslog mailing list