[vlc-commits] transcode: set video chroma before trying to query video filters

Ilkka Ollakka git at videolan.org
Sat Nov 9 17:41:18 CET 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Nov  9 18:12:41 2013 +0200| [eb39fc67fa7701a6653e693866647d421c786353] | committer: Ilkka Ollakka

transcode: set video chroma before trying to query video filters

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

 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 c1f10c6..5f277a9 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -272,6 +272,7 @@ static void transcode_video_filter_init( sout_stream_t *p_stream,
                                          sout_stream_id_t *id )
 {
     const es_format_t *p_fmt_out = &id->p_decoder->fmt_out;
+    id->p_encoder->fmt_in.video.i_chroma = id->p_encoder->fmt_in.i_codec;
 
     id->p_f_chain = filter_chain_New( p_stream, "video filter2",
                                       false,
@@ -526,7 +527,6 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream,
              id->p_encoder->fmt_out.video.i_sar_num * id->p_encoder->fmt_out.video.i_width,
              id->p_encoder->fmt_out.video.i_sar_den * id->p_encoder->fmt_out.video.i_height );
 
-    id->p_encoder->fmt_in.video.i_chroma = id->p_encoder->fmt_in.i_codec;
 }
 
 static int transcode_video_encoder_open( sout_stream_t *p_stream,



More information about the vlc-commits mailing list