[vlc-devel] [PATCH 2/3] rawvideo: fmt_out should be filled in paquetizer mode and not in decoder mode

Pierre Lamot pierre at videolabs.io
Wed Sep 6 15:01:02 CEST 2017


  The inverse was done
---
 modules/codec/rawvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index 9c5853bed6..b8a5317889 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -100,7 +100,7 @@ static int OpenCommon( decoder_t *p_dec, bool b_packetizer )
     if( !p_dec->fmt_in.video.i_visible_height )
         p_dec->fmt_in.video.i_visible_height = p_dec->fmt_in.video.i_height;
 
-    if ( !b_packetizer )
+    if ( b_packetizer )
         es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
 
     if( p_dec->fmt_out.video.i_frame_rate == 0 ||
-- 
2.14.1



More information about the vlc-devel mailing list