Skip to content

Commit 6b87da8

Browse files
committed
AV_CODEC_CAP_OTHER_THREADS compat
AV_CODEC_CAP_OTHER_THREADS was AV_CODEC_CAP_AUTO_THREADS in older libavcodec versions.
1 parent bfe2ee4 commit 6b87da8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libavcodec/lavc_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ extern "C" {
156156
#define AVCODECCTX_CHANNELS(context) (context)->channels
157157
#endif
158158

159+
#ifndef AV_CODEC_CAP_OTHER_THREADS
160+
#define AV_CODEC_CAP_OTHER_THREADS AV_CODEC_CAP_AUTO_THREADS
161+
#endif
162+
159163
#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(57, 8, 0)
160164
static struct AVPacket *av_packet_alloc(void) ATTRIBUTE(unused);
161165
static struct AVPacket *av_packet_alloc() {

0 commit comments

Comments
 (0)