<html><head></head><body><div class="gmail_quote">Le 7 juillet 2017 18:19:29 GMT+03:00, Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com> 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">This allows the vout to handle more than 8k formats, and partially fixes the<br />issue #18215, as the vout failed to open due to this restriction. We now have<br />to check for the maximum size the HW can handle, and resize to it if bigger.<br />---<br /> src/video_output/video_output.c | 4 ++--<br /> 1 file changed, 2 insertions(+), 2 deletions(-)<br /><br />diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c<br />index 2f11ebeec3..ca20539c7d 100644<br />--- a/src/video_output/video_output.c<br />+++ b/src/video_output/video_output.c<br />@@ -78,8 +78,8 @@ static void VoutDestructor(vlc_object_t *);<br /> static int VoutValidateFormat(video_format_t *dst,<br />                               const video_format_t *src)<br /> {<br />-    if (src->i_width == 0  || src->i_width  > 8192 ||<br />-        src->i_height == 0 || src->i_height > 8192)<br />+    if (src->i_width == 0  || src->i_width  > 32768 ||<br />+        src->i_height == 0 || src->i_height > 32768)<br />         return VLC_EGENERIC;<br />     if (src->i_sar_num <= 0 || src->i_sar_den <= 0)<br />         return VLC_EGENERIC;</pre></blockquote></div><br clear="all">You most probably can't just do that. This will most probably lead to overflow in 32-bits arithmetic, and I can't see any attempt to address that in the patch series.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>