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

Rémi Denis-Courmont remi at remlab.net
Wed Sep 6 15:25:08 CEST 2017


Le 6 septembre 2017 16:01:02 GMT+03:00, Pierre Lamot <pierre at videolabs.io> a écrit :
>  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
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

No. Output format should be filed in all modes (unless default values are OK).

I don't if the patch is right or wronh because the description does not make much sense.
-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.


More information about the vlc-devel mailing list