[vlc-devel] [PATCH] transcode: video: fix filter drain

Alexandre Janniaux ajanni at videolabs.io
Mon Jul 20 17:57:27 CEST 2020


When filters like deinterlace are returning multiple pictures, forcing
the filtering of the second picture in a filter chain can be done by
calling filter_chain_VideoFilter with NULL.

Without this, additional pictures are dropped instead of being filtered
and encoded.
---
 modules/stream_out/transcode/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 23fa505e358..f0214d16645 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -663,7 +663,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
             filter_chain_t * primary_chains[] = { id->p_f_chain,
                                                   id->p_conv_nonstatic,
                                                   id->p_conv_static };
-            for( size_t i=0; p_in && i<ARRAY_SIZE(primary_chains); i++ )
+            for( size_t i=0; i<ARRAY_SIZE(primary_chains); i++ )
             {
                 if( !primary_chains[i] )
                     continue;
-- 
2.27.0



More information about the vlc-devel mailing list