lavc/qsvenc: Fix compilation for some build environments.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 26 Nov 2019 23:03:33 +0000 (00:03 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 26 Nov 2019 23:03:33 +0000 (00:03 +0100)
Reported and tested by Sean Darcy.

libavcodec/qsvenc.c

index 93d49ba..1bc5600 100644 (file)
@@ -824,7 +824,9 @@ static int qsv_retrieve_enc_vp9_params(AVCodecContext *avctx, QSVEncContext *q)
 #endif
 
     mfxExtBuffer *ext_buffers[] = {
+#if QSV_HAVE_EXT_VP9_PARAM
         (mfxExtBuffer*)&vp9_extend_buf,
+#endif
 #if QSV_HAVE_CO2
         (mfxExtBuffer*)&co2,
 #endif