From d6f52ead3bfd5ae3646e6226c4371fa7d52c644e Mon Sep 17 00:00:00 2001 From: eisneinechse <42617957+eisneinechse@users.noreply.github.com> Date: Sat, 8 Sep 2018 22:30:16 -0700 Subject: [PATCH] Only use the hw accel variables when ffmpeg >= 3.2 --- src/FFmpegReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FFmpegReader.cpp b/src/FFmpegReader.cpp index 9f4bb514..c067f3fe 100644 --- a/src/FFmpegReader.cpp +++ b/src/FFmpegReader.cpp @@ -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),