<html><head></head><body>It is necessary in some lavc versions. This probably needs a bump in requirements first.<br><br><div class="gmail_quote">Le 20 décembre 2018 11:29:20 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">Looking at the code it doesn't seem like we allocate it, nor lavc. I think in<br>real life it's always NULL.<br><br>There's also nothing in the VDPAU lavc doc that says we have to free it.<hr> modules/hw/vdpau/avcodec.c | 3 ++-<br> 1 file changed, 2 insertions(+), 1 deletion(-)<br><br>diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c<br>index e4544e6e0c..40b1d8ab23 100644<br>--- a/modules/hw/vdpau/avcodec.c<br>+++ b/modules/hw/vdpau/avcodec.c<br>@@ -209,10 +209,11 @@ static void Close(vlc_va_t *va, void **hwctx)<br> {<br>     vlc_va_sys_t *sys = va->sys;<br> <br>+    assert(hwctx == NULL);<br>+<br>     for (unsigned i = 0; sys->pool[i] != NULL; i++)<br>         vlc_vdp_video_destroy(sys->pool[i]);<br>     vdp_release_x11(sys->vdp);<br>-    av_freep(hwctx);<br>     free(sys);<br> }<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>