<html><head></head><body><div class="gmail_quote">Le 4 août 2017 15:54:55 GMT+03:00, Steve Lhomme <robux4@videolabs.io> 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">---<br /> modules/codec/avcodec/video.c | 8 ++++++++<br /> 1 file changed, 8 insertions(+)<br /><br />diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c<br />index 590aa9460f..14668db0c4 100644<br />--- a/modules/codec/avcodec/video.c<br />+++ b/modules/codec/avcodec/video.c<br />@@ -1490,6 +1490,14 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,<br />             can_hwaccel = true;<br />     }<br /> <br />+    char * var = var_InheritString(p_dec, "avcodec-hw");<br />+    if (var == NULL || !strcmp( var, "none" ))<br />+    {<br />+        msg_Dbg( p_dec, "disable hardware decoders" );<br />+        can_hwaccel = false;<br />+    }<br />+    free(var);<br />+<br />     /* If the format did not actually change (e.g. seeking), try to reuse the<br />      * existing output format, and if present, hardware acceleration back-end.<br />      * This avoids resetting the pipeline downstream. This also avoids</pre></blockquote></div><br clear="all">Hell no. We have had enough bugs with second-guessing the module loader already.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>