From 6b87da86b5a9f8a75cc86a5647ae25b2df5ce22c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 9 Dec 2022 12:09:37 +0100 Subject: [PATCH] AV_CODEC_CAP_OTHER_THREADS compat AV_CODEC_CAP_OTHER_THREADS was AV_CODEC_CAP_AUTO_THREADS in older libavcodec versions. --- src/libavcodec/lavc_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libavcodec/lavc_common.h b/src/libavcodec/lavc_common.h index 99c142a00..6325bb3d1 100644 --- a/src/libavcodec/lavc_common.h +++ b/src/libavcodec/lavc_common.h @@ -156,6 +156,10 @@ extern "C" { #define AVCODECCTX_CHANNELS(context) (context)->channels #endif +#ifndef AV_CODEC_CAP_OTHER_THREADS +#define AV_CODEC_CAP_OTHER_THREADS AV_CODEC_CAP_AUTO_THREADS +#endif + #if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(57, 8, 0) static struct AVPacket *av_packet_alloc(void) ATTRIBUTE(unused); static struct AVPacket *av_packet_alloc() {