<html><head></head><body>Doing that *before* checking the visible dimensions was probably wrong and probably still is.<br><br><div class="gmail_quote">Le 19 février 2019 11:38:18 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><hr> src/input/decoder.c         | 12 ------------<br> src/input/decoder_helpers.c | 12 ++++++++++++<br> 2 files changed, 12 insertions(+), 12 deletions(-)<br><br>diff --git a/src/input/decoder.c b/src/input/decoder.c<br>index 16e88702b7..f87e418551 100644<br>--- a/src/input/decoder.c<br>+++ b/src/input/decoder.c<br>@@ -456,18 +456,6 @@ static int vout_update_format( decoder_t *p_dec )<br> <br>         video_format_t fmt = p_dec->fmt_out.video;<br> <br>-        if( vlc_fourcc_IsYUV( fmt.i_chroma ) )<br>-        {<br>-            const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma );<br>-            for( unsigned int i = 0; dsc && i < dsc->plane_count; i++ )<br>-            {<br>-                while( fmt.i_width % dsc->p[i].w.den )<br>-                    fmt.i_width++;<br>-                while( fmt.i_height % dsc->p[i].h.den )<br>-                    fmt.i_height++;<br>-            }<br>-        }<br>-<br>         if( !fmt.i_visible_width || !fmt.i_visible_height )<br>         {<br>             if( p_dec->fmt_in.video.i_visible_width &&<br>diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c<br>index b738525b1e..36043753ca 100644<br>--- a/src/input/decoder_helpers.c<br>+++ b/src/input/decoder_helpers.c<br>@@ -96,6 +96,18 @@ int decoder_UpdateVideoFormat( decoder_t *dec )<br> <br>     dec->fmt_out.video.i_chroma = fmt_out.i_chroma = dec->fmt_out.i_codec;<br> <br>+    if( vlc_fourcc_IsYUV( fmt_out.i_chroma ) )<br>+    {<br>+        const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt_out.i_chroma );<br>+        for( unsigned int i = 0; dsc && i < dsc->plane_count; i++ )<br>+        {<br>+            while( fmt_out.i_width % dsc->p[i].w.den )<br>+                fmt_out.i_width++;<br>+            while( fmt_out.i_height % dsc->p[i].h.den )<br>+                fmt_out.i_height++;<br>+        }<br>+    }<br>+<br>     video_format_t original = dec->fmt_out.video;<br>     dec->fmt_out.video = fmt_out;<br>     int err = dec->cbs->video.format_update( dec );</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>