[FFmpeg-cvslog] lavc/qsvenc: Fix compilation for some build environments.

Carl Eugen Hoyos git at videolan.org
Wed Nov 27 01:04:38 EET 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Nov 27 00:03:33 2019 +0100| [a2fbdc6898fc72f7f289e750f2199ee66216f2f8] | committer: Carl Eugen Hoyos

lavc/qsvenc: Fix compilation for some build environments.

Reported and tested by Sean Darcy.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2fbdc6898fc72f7f289e750f2199ee66216f2f8
---

 libavcodec/qsvenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 93d49ba21d..1bc5600061 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -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



More information about the ffmpeg-cvslog mailing list