diff --git a/src/video_compress/libavcodec.cpp b/src/video_compress/libavcodec.cpp index a3ac039c2..2c95eace3 100644 --- a/src/video_compress/libavcodec.cpp +++ b/src/video_compress/libavcodec.cpp @@ -768,6 +768,8 @@ static list get_available_pix_fmts(struct video_desc in_desc if (regex_match(codec->name, regex(".*vaapi.*"))) { fmts.push_back(AV_PIX_FMT_VAAPI); } +#else + UNUSED(codec); #endif // add the format itself if it matches the ultragrid one