[FFmpeg-cvslog] fftools/ffmpeg_filter: do not flush encoders on parameter change

Anton Khirnov git at videolan.org
Wed May 31 17:26:27 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu May 25 15:38:56 2023 +0200| [ba2c791627334ac70e5a5df480b80ee3ce61519d] | committer: Anton Khirnov

fftools/ffmpeg_filter: do not flush encoders on parameter change

It makes no sense to do so.

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

 fftools/ffmpeg_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 2cf3c891ce..c3075ef854 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1905,7 +1905,7 @@ int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame, int keep_reference)
             return ret;
         }
 
-        ret = reap_filters(1);
+        ret = reap_filters(0);
         if (ret < 0 && ret != AVERROR_EOF) {
             av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", av_err2str(ret));
             return ret;



More information about the ffmpeg-cvslog mailing list