2011-01-21 19:18:06 +00:00
|
|
|
/*
|
|
|
|
* Version macros.
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVFORMAT_VERSION_H
|
|
|
|
#define AVFORMAT_VERSION_H
|
|
|
|
|
2011-12-10 19:16:57 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @ingroup libavf
|
|
|
|
* Libavformat version macros
|
|
|
|
*/
|
|
|
|
|
2013-12-25 16:16:05 +00:00
|
|
|
#include "libavutil/version.h"
|
2011-01-21 19:18:06 +00:00
|
|
|
|
2016-06-13 11:10:07 +00:00
|
|
|
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
|
2016-08-17 14:33:14 +00:00
|
|
|
// Also please add any ticket numbers that you believe might be affected here
|
2015-09-05 19:35:46 +00:00
|
|
|
#define LIBAVFORMAT_VERSION_MAJOR 57
|
2016-11-17 05:02:41 +00:00
|
|
|
#define LIBAVFORMAT_VERSION_MINOR 58
|
2016-11-25 10:06:14 +00:00
|
|
|
#define LIBAVFORMAT_VERSION_MICRO 101
|
2011-01-21 19:18:06 +00:00
|
|
|
|
|
|
|
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
|
|
|
LIBAVFORMAT_VERSION_MINOR, \
|
|
|
|
LIBAVFORMAT_VERSION_MICRO)
|
|
|
|
#define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \
|
|
|
|
LIBAVFORMAT_VERSION_MINOR, \
|
|
|
|
LIBAVFORMAT_VERSION_MICRO)
|
|
|
|
#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
|
|
|
|
|
|
|
|
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
|
|
|
|
|
|
|
|
/**
|
2012-07-03 20:42:42 +00:00
|
|
|
* FF_API_* defines may be placed below to indicate public API that will be
|
|
|
|
* dropped at a future version bump. The defines themselves are not part of
|
|
|
|
* the public API and may change, break or disappear at any time.
|
2015-08-18 10:28:17 +00:00
|
|
|
*
|
2015-08-22 05:40:39 +00:00
|
|
|
* @note, when bumping the major version it is recommended to manually
|
2015-08-18 10:28:17 +00:00
|
|
|
* disable each FF_API_* in its own commit instead of disabling them all
|
2015-08-22 05:40:39 +00:00
|
|
|
* at once through the bump. This improves the git bisect-ability of the change.
|
2015-08-18 10:28:17 +00:00
|
|
|
*
|
2011-01-21 19:18:06 +00:00
|
|
|
*/
|
2014-05-01 08:43:10 +00:00
|
|
|
#ifndef FF_API_LAVF_BITEXACT
|
2015-07-28 13:30:35 +00:00
|
|
|
#define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-01 08:43:10 +00:00
|
|
|
#endif
|
2014-05-18 10:36:00 +00:00
|
|
|
#ifndef FF_API_LAVF_FRAC
|
2015-07-28 13:30:35 +00:00
|
|
|
#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-18 10:36:00 +00:00
|
|
|
#endif
|
2014-05-18 10:12:59 +00:00
|
|
|
#ifndef FF_API_LAVF_CODEC_TB
|
2015-07-28 13:30:35 +00:00
|
|
|
#define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-08-07 20:12:40 +00:00
|
|
|
#endif
|
|
|
|
#ifndef FF_API_URL_FEOF
|
2015-09-05 19:21:20 +00:00
|
|
|
#define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-18 10:12:59 +00:00
|
|
|
#endif
|
2015-10-12 14:06:07 +00:00
|
|
|
#ifndef FF_API_LAVF_FMT_RAWPICTURE
|
|
|
|
#define FF_API_LAVF_FMT_RAWPICTURE (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2015-10-07 13:51:11 +00:00
|
|
|
#ifndef FF_API_COMPUTE_PKT_FIELDS2
|
|
|
|
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2016-02-10 14:40:32 +00:00
|
|
|
#ifndef FF_API_OLD_OPEN_CALLBACKS
|
|
|
|
#define FF_API_OLD_OPEN_CALLBACKS (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
lavf: replace AVStream.codec with AVStream.codecpar
Currently, AVStream contains an embedded AVCodecContext instance, which
is used by demuxers to export stream parameters to the caller and by
muxers to receive stream parameters from the caller. It is also used
internally as the codec context that is passed to parsers.
In addition, it is also widely used by the callers as the decoding (when
demuxer) or encoding (when muxing) context, though this has been
officially discouraged since Libav 11.
There are multiple important problems with this approach:
- the fields in AVCodecContext are in general one of
* stream parameters
* codec options
* codec state
However, it's not clear which ones are which. It is consequently
unclear which fields are a demuxer allowed to set or a muxer allowed to
read. This leads to erratic behaviour depending on whether decoding or
encoding is being performed or not (and whether it uses the AVStream
embedded codec context).
- various synchronization issues arising from the fact that the same
context is used by several different APIs (muxers/demuxers,
parsers, bitstream filters and encoders/decoders) simultaneously, with
there being no clear rules for who can modify what and the different
processes being typically delayed with respect to each other.
- avformat_find_stream_info() making it necessary to support opening
and closing a single codec context multiple times, thus
complicating the semantics of freeing various allocated objects in the
codec context.
Those problems are resolved by replacing the AVStream embedded codec
context with a newly added AVCodecParameters instance, which stores only
the stream parameters exported by the demuxers or read by the muxers.
2014-06-18 18:42:52 +00:00
|
|
|
#ifndef FF_API_LAVF_AVCTX
|
|
|
|
#define FF_API_LAVF_AVCTX (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2016-06-27 09:28:12 +00:00
|
|
|
#ifndef FF_API_NOCONST_GET_SIDE_DATA
|
|
|
|
#define FF_API_NOCONST_GET_SIDE_DATA (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2016-09-16 02:42:34 +00:00
|
|
|
#ifndef FF_API_HTTP_USER_AGENT
|
|
|
|
#define FF_API_HTTP_USER_AGENT (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2012-07-03 20:42:42 +00:00
|
|
|
|
2012-06-26 11:10:01 +00:00
|
|
|
#ifndef FF_API_R_FRAME_RATE
|
2013-03-12 14:29:20 +00:00
|
|
|
#define FF_API_R_FRAME_RATE 1
|
2012-06-26 11:10:01 +00:00
|
|
|
#endif
|
2011-05-17 14:58:04 +00:00
|
|
|
#endif /* AVFORMAT_VERSION_H */
|