2011-01-21 20:18:06 +01: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 20:16:57 +01:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @ingroup libavf
|
|
|
|
* Libavformat version macros
|
|
|
|
*/
|
|
|
|
|
2013-12-25 17:16:05 +01:00
|
|
|
#include "libavutil/version.h"
|
2011-01-21 20:18:06 +01:00
|
|
|
|
2016-06-13 13:10:07 +02:00
|
|
|
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
|
|
|
|
// Also please add any ticket numbers that you belive might be affected here
|
2015-09-05 21:35:46 +02:00
|
|
|
#define LIBAVFORMAT_VERSION_MAJOR 57
|
2016-07-21 02:55:12 +02:00
|
|
|
#define LIBAVFORMAT_VERSION_MINOR 44
|
2016-06-30 14:02:26 +02:00
|
|
|
#define LIBAVFORMAT_VERSION_MICRO 100
|
2011-01-21 20:18:06 +01: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 22:42:42 +02: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 12:28:17 +02:00
|
|
|
*
|
2015-08-22 07:40:39 +02:00
|
|
|
* @note, when bumping the major version it is recommended to manually
|
2015-08-18 12:28:17 +02:00
|
|
|
* disable each FF_API_* in its own commit instead of disabling them all
|
2015-08-22 07:40:39 +02:00
|
|
|
* at once through the bump. This improves the git bisect-ability of the change.
|
2015-08-18 12:28:17 +02:00
|
|
|
*
|
2011-01-21 20:18:06 +01:00
|
|
|
*/
|
2014-05-01 10:43:10 +02:00
|
|
|
#ifndef FF_API_LAVF_BITEXACT
|
2015-07-28 15:30:35 +02:00
|
|
|
#define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-01 10:43:10 +02:00
|
|
|
#endif
|
2014-05-18 12:36:00 +02:00
|
|
|
#ifndef FF_API_LAVF_FRAC
|
2015-07-28 15:30:35 +02:00
|
|
|
#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-18 12:36:00 +02:00
|
|
|
#endif
|
2014-05-18 12:12:59 +02:00
|
|
|
#ifndef FF_API_LAVF_CODEC_TB
|
2015-07-28 15:30:35 +02:00
|
|
|
#define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-08-07 22:12:40 +02:00
|
|
|
#endif
|
|
|
|
#ifndef FF_API_URL_FEOF
|
2015-09-05 21:21:20 +02:00
|
|
|
#define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 58)
|
2014-05-18 12:12:59 +02:00
|
|
|
#endif
|
2015-10-12 16:06:07 +02:00
|
|
|
#ifndef FF_API_LAVF_FMT_RAWPICTURE
|
|
|
|
#define FF_API_LAVF_FMT_RAWPICTURE (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2015-10-07 15:51:11 +02:00
|
|
|
#ifndef FF_API_COMPUTE_PKT_FIELDS2
|
|
|
|
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2016-02-10 15:40:32 +01: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 20:42:52 +02:00
|
|
|
#ifndef FF_API_LAVF_AVCTX
|
|
|
|
#define FF_API_LAVF_AVCTX (LIBAVFORMAT_VERSION_MAJOR < 58)
|
|
|
|
#endif
|
2012-07-03 22:42:42 +02:00
|
|
|
|
2012-06-26 13:10:01 +02:00
|
|
|
#ifndef FF_API_R_FRAME_RATE
|
2013-03-12 15:29:20 +01:00
|
|
|
#define FF_API_R_FRAME_RATE 1
|
2012-06-26 13:10:01 +02:00
|
|
|
#endif
|
2011-05-17 16:58:04 +02:00
|
|
|
#endif /* AVFORMAT_VERSION_H */
|