<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:helvetica, arial, sans-serif;">Hello,<br></div>
<div><br></div>
<div>On Fri, 4 Aug 2017, at 16:31, Rémi Denis-Courmont wrote:<br></div>
<blockquote type="cite"><div defang_data-gmailquote="yes"><div style="font-family:helvetica, arial, sans-serif;">Le 4 août 2017 15:54:55 GMT+03:00, Steve Lhomme <robux4@videolabs.io> a écrit :<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><pre><div style="font-family:helvetica, arial, sans-serif;">---<br></div>
<div style="font-family:helvetica, arial, sans-serif;"> modules/codec/avcodec/video.c | 8 ++++++++<br></div>
<div style="font-family:helvetica, arial, sans-serif;"> 1 file changed, 8 insertions(+)<br></div>
<div style="font-family:helvetica, arial, sans-serif;"><br></div>
<div style="font-family:helvetica, arial, sans-serif;">diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c<br></div>
<div style="font-family:helvetica, arial, sans-serif;">index 590aa9460f..14668db0c4 100644<br></div>
<div style="font-family:helvetica, arial, sans-serif;">--- a/modules/codec/avcodec/video.c<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+++ b/modules/codec/avcodec/video.c<br></div>
<div style="font-family:helvetica, arial, sans-serif;">@@ -1490,6 +1490,14 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,<br></div>
<div style="font-family:helvetica, arial, sans-serif;">             can_hwaccel = true;<br></div>
<div style="font-family:helvetica, arial, sans-serif;">     }<br></div>
<div style="font-family:helvetica, arial, sans-serif;"> <br></div>
<div style="font-family:helvetica, arial, sans-serif;">+    char * var = var_InheritString(p_dec, "avcodec-hw");<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+    if (var == NULL || !strcmp( var, "none" ))<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+    {<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+        msg_Dbg( p_dec, "disable hardware decoders" );<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+        can_hwaccel = false;<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+    }<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+    free(var);<br></div>
<div style="font-family:helvetica, arial, sans-serif;">+<br></div>
<div style="font-family:helvetica, arial, sans-serif;">     /* If the format did not actually change (e.g. seeking), try to reuse the<br></div>
<div style="font-family:helvetica, arial, sans-serif;">      * existing output format, and if present, hardware acceleration back-end.<br></div>
<div style="font-family:helvetica, arial, sans-serif;">      * This avoids resetting the pipeline downstream. This also avoids<br></div>
</pre></blockquote></div>
<div style="font-family:helvetica, arial, sans-serif;"><br></div>
<div style="font-family:helvetica, arial, sans-serif;">Hell no. We have had enough bugs with second-guessing the module loader already.<br></div>
</blockquote><div style="font-family:helvetica, arial, sans-serif;"><br></div>
<div style="font-family:helvetica, arial, sans-serif;">Then, how do you disable all hw decoding?<br></div>
<div style="font-family:helvetica, arial, sans-serif;"><br></div>
<div style="font-family:helvetica, arial, sans-serif;">--<br></div>
<div id="sig60240713"><div class="signature">Jean-Baptiste Kempf -  President<br></div>
<div class="signature">+33 672 704 734<br></div>
<div class="signature"> <br></div>
<div class="signature"><br></div>
</div>
<div style="font-family:helvetica, arial, sans-serif;"><br></div>
</body>
</html>