[vlc-commits] transcode: run user speficied videofilters before overlays

Ilkka Ollakka git at videolan.org
Sun Jan 22 18:05:56 CET 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jan 22 19:01:35 2012 +0200| [82e22a4443bc431c4b0c759883db2960b492d97c] | committer: Ilkka Ollakka

transcode: run user speficied videofilters before overlays

For example crop/pad can change p_enc.in values, so run soverlay
in part that they are actually correct in p_pict.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82e22a4443bc431c4b0c759883db2960b492d97c
---

 modules/stream_out/transcode/video.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index f4d71fd..db115c7 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -673,6 +673,10 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
         if( id->p_f_chain )
             p_pic = filter_chain_VideoFilter( id->p_f_chain, p_pic );
 
+        /* Run user specified filter chain */
+        if( id->p_uf_chain )
+            p_pic = filter_chain_VideoFilter( id->p_uf_chain, p_pic );
+
         /*
          * Encoding
          */
@@ -714,10 +718,6 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
             }
         }
 
-        /* Run user specified filter chain */
-        if( id->p_uf_chain )
-            p_pic = filter_chain_VideoFilter( id->p_uf_chain, p_pic );
-
         if( p_sys->i_threads == 0 )
         {
             block_t *p_block;



More information about the vlc-commits mailing list