FFmpegfs Fuse Multi Media Filesystem 2.19
Loading...
Searching...
No Matches
ffmpeg_compat.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017-2026 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
57#define LAVU_DEP_PKT_DURATION (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 30, 0))
58
96#define IF_DECLARED_CONST (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(59, 0, 0))
103#define LAVU_DEP_OLD_CHANNEL_LAYOUT (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 24, 0))
109#define SWR_DEP_ALLOC_SET_OPTS (LIBSWRESAMPLE_VERSION_INT >= AV_VERSION_INT(4, 5, 0))
117#define LAVU_ADD_NEW_FRAME_FLAGS (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 7, 0))
123#define LAVC_DEP_FLAG_TRUNCATED (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(59, 8, 0))
129#define LAVF_WRITEPACKET_CONST (LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(61, 0, 0))
130
137#define LAVC_DEP_TICKSPERFRAME (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 0, 0))
138
145#define LAVC_USE_SUPPORTED_CFG (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(61, 13, 0))
146
147#endif // FFMPEG_COMPAT_H