mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029112: Visualization - compilation fails on Ubuntu with libavutil 54.x (FFmpeg 2.7.6)
Offending macro is undefined to allow compilation with libavutil 54.x
This commit is contained in:
@@ -51,6 +51,13 @@ extern "C"
|
||||
#endif
|
||||
};
|
||||
|
||||
// Undefine macro that clashes with name used by field of Image_VideoParams;
|
||||
// this macro is defined in headers of older versions of libavutil
|
||||
// (see definition of macro FF_API_PIX_FMT in version.h)
|
||||
#ifdef PixelFormat
|
||||
#undef PixelFormat
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Image_VideoRecorder, Standard_Transient)
|
||||
|
@@ -28,6 +28,13 @@ struct AVCodec;
|
||||
struct AVFrame;
|
||||
struct SwsContext;
|
||||
|
||||
// Undefine macro that clashes with name used by field of Image_VideoParams;
|
||||
// this macro is defined in headers of older versions of libavutil
|
||||
// (see definition of macro FF_API_PIX_FMT in version.h)
|
||||
#ifdef PixelFormat
|
||||
#undef PixelFormat
|
||||
#endif
|
||||
|
||||
//! Auxiliary structure defining video parameters.
|
||||
//! Please refer to FFmpeg documentation for defining text values.
|
||||
struct Image_VideoParams
|
||||
|
Reference in New Issue
Block a user