You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Only use the hw accel variables when ffmpeg >= 3.2
This commit is contained in:
@@ -32,10 +32,12 @@
|
||||
|
||||
using namespace openshot;
|
||||
|
||||
#if IS_FFMPEG_3_2
|
||||
int hw_de_on = 1; // Is set in UI
|
||||
int hw_de_supported = 0; // Is set by FFmpegReader
|
||||
AVPixelFormat hw_de_av_pix_fmt = AV_PIX_FMT_NONE;
|
||||
AVHWDeviceType hw_de_av_device_type = AV_HWDEVICE_TYPE_VAAPI;
|
||||
#endif
|
||||
|
||||
FFmpegReader::FFmpegReader(string path)
|
||||
: last_frame(0), is_seeking(0), seeking_pts(0), seeking_frame(0), seek_count(0),
|
||||
|
||||
Reference in New Issue
Block a user