]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/xv.c
Merge commit 'b6094811f9fca66cdf853420696e96fdc3e4987a'
[ffmpeg] / libavdevice / xv.c
index 3b377f8bdb6debb0de36182adfbfd394c543aea4..50d72a5f8def04619d75a27641bad3ab2d67ed2c 100644 (file)
@@ -97,6 +97,7 @@ static int xv_write_header(AVFormatContext *s)
     if (XvQueryAdaptors(xv->display, DefaultRootWindow(xv->display), &num_adaptors, &ai) != Success)
         return AVERROR_EXTERNAL;
     xv->xv_port = ai[0].base_id;
+    XvFreeAdaptorInfo(ai);
 
     if (encctx->pix_fmt != AV_PIX_FMT_YUV420P) {
         av_log(s, AV_LOG_ERROR,