Merge pull request #21048 from ffontaine:4.x

This commit is contained in:
Alexander Alekhin 2021-11-12 12:28:28 +00:00
commit 45f18eaa52

View File

@ -93,6 +93,12 @@ extern "C" {
}
#endif
// GCC 4.x compilation bug. Details: https://github.com/opencv/opencv/issues/20292
#if (defined(__GNUC__) && __GNUC__ < 5) && !defined(__clang__)
#undef USE_AV_HW_CODECS
#define USE_AV_HW_CODECS 0
#endif
//#define USE_AV_HW_CODECS 0
#ifndef USE_AV_HW_CODECS
#if LIBAVUTIL_VERSION_MAJOR >= 56 // FFMPEG 4.0+