提交 ff45b7b1 编写于 作者: L Lucian Poston 提交者: jp9000

obs-ffmpeg: Call av_register_all before nvenc check

Closes jp9000/obs-studio#1157
上级 653d3ceb
......@@ -3,6 +3,7 @@
#include <util/platform.h>
#include <libavutil/log.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <pthread.h>
#ifndef __APPLE__
......@@ -147,7 +148,10 @@ typedef NVENCSTATUS (NVENCAPI *NVENCODEAPICREATEINSTANCE)(
static bool nvenc_supported(void)
{
av_register_all();
profile_start(nvenc_check_name);
AVCodec *nvenc = avcodec_find_encoder_by_name("nvenc_h264");
void *lib = NULL;
void *cudalib = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册