Commit eca34446 authored by Guillaume Roguez's avatar Guillaume Roguez

#28513: fix avcodec_free_frame() not defined in libav < 54.28

parent 2acfa869
...@@ -55,4 +55,9 @@ extern "C" { ...@@ -55,4 +55,9 @@ extern "C" {
#define AVPixelFormat PixelFormat #define AVPixelFormat PixelFormat
#endif #endif
#if (LIBAVCODEC_VERSION_MAJOR < 54) \
|| ((LIBAVCODEC_VERSION_MAJOR == 54) && (LIBAVCODEC_VERSION_MINOR < 28))
#define avcodec_free_frame(x) av_freep(x)
#endif
#endif // __LIBAV_DEPS_H__ #endif // __LIBAV_DEPS_H__
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment