FFmpegfs Fuse Multi Media Filesystem 2.16
ffmpeg_compat.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017-2024 by Norbert Schlia (nschlia@oblivion-software.de)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 * On Debian systems, the complete text of the GNU General Public License
19 * Version 3 can be found in `/usr/share/common-licenses/GPL-3'.
20 */
21
34#ifndef FFMPEG_COMPAT_H
35#define FFMPEG_COMPAT_H
36
37#pragma once
38
39#ifdef __clang__
40#define FALLTHROUGH_INTENDED [[clang::fallthrough]]
41#else
42#define FALLTHROUGH_INTENDED [[gnu::fallthrough]]
43#endif
44
53// FFmpeg 4.1.8 "al-Khwarizmi" or newer:
54//
55// libavutil (>= 56.22.100)
56// libavcodec (>= 58.35.100)
57// libavformat (>= 58.20.100)
58// libavfilter (>= 7.40.101)
59// libswscale (>= 5.3.100)
60// libswresample (>= 3.3.100)
61
66#define LAVU_DEP_PKT_DURATION (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 30, 0))
67
86#define LAVC_DEP_AV_INIT_PACKET (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 133, 0))
124#define IF_DECLARED_CONST (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(59, 0, 0))
131#define LAVU_DEP_OLD_CHANNEL_LAYOUT (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 24, 0))
137#define SWR_DEP_ALLOC_SET_OPTS (LIBSWRESAMPLE_VERSION_INT >= AV_VERSION_INT(4, 5, 0))
145#define LAVU_ADD_NEW_FRAME_FLAGS (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 7, 0))
151#define LAVC_DEP_FLAG_TRUNCATED (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(59, 8, 0))
157#define LAVF_WRITEPACKET_CONST (LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(61, 0, 0))
158
165#define LAVC_DEP_TICKSPERFRAME (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 0, 0))
166
167#endif // FFMPEG_COMPAT_H