mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
ffmpeg/tools: Fix compatibility with Ubuntu 18.04
This commit is contained in:
parent
63a5873413
commit
66b1715d78
2 changed files with 1 additions and 6 deletions
|
@ -21,9 +21,7 @@
|
||||||
|
|
||||||
#include "tools.hpp"
|
#include "tools.hpp"
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdexcept>
|
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -172,7 +170,7 @@ bool tools::can_hardware_encode(const AVCodec* codec)
|
||||||
|
|
||||||
std::vector<AVPixelFormat> tools::get_software_formats(const AVPixelFormat* list)
|
std::vector<AVPixelFormat> tools::get_software_formats(const AVPixelFormat* list)
|
||||||
{
|
{
|
||||||
AVPixelFormat hardware_formats[] = {
|
constexpr AVPixelFormat hardware_formats[] = {
|
||||||
#if FF_API_VAAPI
|
#if FF_API_VAAPI
|
||||||
AV_PIX_FMT_VAAPI_MOCO,
|
AV_PIX_FMT_VAAPI_MOCO,
|
||||||
AV_PIX_FMT_VAAPI_IDCT,
|
AV_PIX_FMT_VAAPI_IDCT,
|
||||||
|
@ -188,7 +186,6 @@ std::vector<AVPixelFormat> tools::get_software_formats(const AVPixelFormat* list
|
||||||
AV_PIX_FMT_VIDEOTOOLBOX,
|
AV_PIX_FMT_VIDEOTOOLBOX,
|
||||||
AV_PIX_FMT_MEDIACODEC,
|
AV_PIX_FMT_MEDIACODEC,
|
||||||
AV_PIX_FMT_D3D11,
|
AV_PIX_FMT_D3D11,
|
||||||
AV_PIX_FMT_OPENCL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<AVPixelFormat> fmts;
|
std::vector<AVPixelFormat> fmts;
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
Loading…
Reference in a new issue