media-io: Fix FF_API_BUFFER_SIZE_T not being defined on Ubuntu 20.04

This commit is contained in:
tytan652 2022-07-18 15:18:54 +02:00 committed by Ryan Foster
parent e4f004cdf8
commit ca896dbce7

View file

@ -34,6 +34,10 @@
#define CODEC_FLAG_GLOBAL_H CODEC_FLAG_GLOBAL_HEADER
#endif
#ifndef FF_API_BUFFER_SIZE_T
#define FF_API_BUFFER_SIZE_T (LIBAVUTIL_VERSION_MAJOR < 57)
#endif
struct media_remux_job {
int64_t in_size;
AVFormatContext *ifmt_ctx, *ofmt_ctx;