From eca344461436ddd0a56329c181d87e8fdf1de43e Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Mon, 9 Sep 2013 12:14:34 -0400 Subject: [PATCH] #28513: fix avcodec_free_frame() not defined in libav < 54.28 --- daemon/src/video/libav_deps.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/src/video/libav_deps.h b/daemon/src/video/libav_deps.h index 371483e0e3..58a0faf8fc 100644 --- a/daemon/src/video/libav_deps.h +++ b/daemon/src/video/libav_deps.h @@ -55,4 +55,9 @@ extern "C" { #define AVPixelFormat PixelFormat #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__ -- GitLab