engine: drop old ffmpeg support (~Ubuntu 14.04)

It's 10 years since the release.

Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
David Heidelberg 2024-11-26 07:44:46 -05:00
parent e20356b05f
commit 51806f4ba6
No known key found for this signature in database
GPG key ID: 60023FC4D3492072

View file

@ -10,13 +10,6 @@ extern "C" {
#include <libswresample/swresample.h> #include <libswresample/swresample.h>
} }
// Rename some functions for older libavcodec/ffmpeg versions (e.g. Ubuntu
// Trusty)
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1)
#define av_frame_alloc avcodec_alloc_frame
#define av_frame_free avcodec_free_frame
#endif
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 80, 100) #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 80, 100)
#define avio_context_free av_freep #define avio_context_free av_freep
#endif #endif