csrc/ffmpeg/format/FormatOut.cpp
@@ -160,6 +160,9 @@ if(prop.gpuAccl()){ av_opt_set(enc_ctx_->priv_data, "preset", "llhp", 0); int idle_gpu = gpu::getGPU(120); if (prop.gpu_index_ > -1){ idle_gpu = prop.gpu_index_; } if(idle_gpu < 0){ logIt("NO GPU RESOURCE TO ENCODE"); return false;