libavformat: Split version.h

Signed-off-by: Martin Storsjö <martin@martin.st>
release/5.1
Martin Storsjö 3 years ago
parent f2da2e1458
commit 4eb9232c6e
  1. 1
      fftools/cmdutils.c
  2. 1
      fftools/ffprobe.c
  3. 1
      libavdevice/pulse_audio_dec.c
  4. 1
      libavdevice/pulse_audio_enc.c
  5. 1
      libavformat/Makefile
  6. 2
      libavformat/avformat.h
  7. 2
      libavformat/avio.h
  8. 1
      libavformat/flacenc.c
  9. 1
      libavformat/framehash.c
  10. 1
      libavformat/matroskaenc.c
  11. 1
      libavformat/mmf.c
  12. 1
      libavformat/movenc.c
  13. 1
      libavformat/mux.c
  14. 1
      libavformat/mxfenc.c
  15. 1
      libavformat/nutenc.c
  16. 1
      libavformat/oggenc.c
  17. 1
      libavformat/rtmpproto.c
  18. 1
      libavformat/rtsp.c
  19. 1
      libavformat/rtspdec.c
  20. 1
      libavformat/utils.c
  21. 23
      libavformat/version.h
  22. 53
      libavformat/version_major.h

@ -32,6 +32,7 @@
#include "config.h" #include "config.h"
#include "compat/va_copy.h" #include "compat/va_copy.h"
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavformat/version.h"
#include "libavfilter/avfilter.h" #include "libavfilter/avfilter.h"
#include "libavdevice/avdevice.h" #include "libavdevice/avdevice.h"
#include "libswscale/swscale.h" #include "libswscale/swscale.h"

@ -29,6 +29,7 @@
#include <string.h> #include <string.h>
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavformat/version.h"
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "libavcodec/version.h" #include "libavcodec/version.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"

@ -30,6 +30,7 @@
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavformat/internal.h" #include "libavformat/internal.h"
#include "libavformat/version.h"
#include "pulse_audio_common.h" #include "pulse_audio_common.h"
#include "timefilter.h" #include "timefilter.h"

@ -23,6 +23,7 @@
#include <pulse/error.h> #include <pulse/error.h>
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavformat/internal.h" #include "libavformat/internal.h"
#include "libavformat/version.h"
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"

@ -4,6 +4,7 @@ DESC = FFmpeg container format library
HEADERS = avformat.h \ HEADERS = avformat.h \
avio.h \ avio.h \
version.h \ version.h \
version_major.h \
OBJS = allformats.o \ OBJS = allformats.o \
avio.o \ avio.o \

@ -319,7 +319,7 @@
#include "libavutil/log.h" #include "libavutil/log.h"
#include "avio.h" #include "avio.h"
#include "libavformat/version.h" #include "libavformat/version_major.h"
struct AVFormatContext; struct AVFormatContext;
struct AVStream; struct AVStream;

@ -33,7 +33,7 @@
#include "libavutil/dict.h" #include "libavutil/dict.h"
#include "libavutil/log.h" #include "libavutil/log.h"
#include "libavformat/version.h" #include "libavformat/version_major.h"
/** /**
* Seeking works like for a local file. * Seeking works like for a local file.

@ -30,6 +30,7 @@
#include "flacenc.h" #include "flacenc.h"
#include "id3v2.h" #include "id3v2.h"
#include "internal.h" #include "internal.h"
#include "version.h"
#include "vorbiscomment.h" #include "vorbiscomment.h"

@ -20,6 +20,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "internal.h" #include "internal.h"
#include "version.h"
int ff_framehash_write_header(AVFormatContext *s) int ff_framehash_write_header(AVFormatContext *s)
{ {

@ -35,6 +35,7 @@
#include "isom.h" #include "isom.h"
#include "matroska.h" #include "matroska.h"
#include "riff.h" #include "riff.h"
#include "version.h"
#include "vorbiscomment.h" #include "vorbiscomment.h"
#include "wv.h" #include "wv.h"

@ -26,6 +26,7 @@
#include "pcm.h" #include "pcm.h"
#include "rawenc.h" #include "rawenc.h"
#include "riff.h" #include "riff.h"
#include "version.h"
typedef struct MMFContext { typedef struct MMFContext {
int64_t atrpos, atsqpos, awapos; int64_t atrpos, atsqpos, awapos;

@ -60,6 +60,7 @@
#include "mov_chan.h" #include "mov_chan.h"
#include "movenc_ttml.h" #include "movenc_ttml.h"
#include "ttmlenc.h" #include "ttmlenc.h"
#include "version.h"
#include "vpcc.h" #include "vpcc.h"
static const AVOption options[] = { static const AVOption options[] = {

@ -21,6 +21,7 @@
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "version.h"
#include "libavcodec/bsf.h" #include "libavcodec/bsf.h"
#include "libavcodec/internal.h" #include "libavcodec/internal.h"
#include "libavcodec/packet_internal.h" #include "libavcodec/packet_internal.h"

@ -58,6 +58,7 @@
#include "avc.h" #include "avc.h"
#include "mxf.h" #include "mxf.h"
#include "config.h" #include "config.h"
#include "version.h"
extern const AVOutputFormat ff_mxf_d10_muxer; extern const AVOutputFormat ff_mxf_d10_muxer;
extern const AVOutputFormat ff_mxf_opatom_muxer; extern const AVOutputFormat ff_mxf_opatom_muxer;

@ -34,6 +34,7 @@
#include "internal.h" #include "internal.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "riff.h" #include "riff.h"
#include "version.h"
static int find_expected_header(AVCodecParameters *p, int size, int key_frame, static int find_expected_header(AVCodecParameters *p, int size, int key_frame,
uint8_t out[64]) uint8_t out[64])

@ -31,6 +31,7 @@
#include "avformat.h" #include "avformat.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "internal.h" #include "internal.h"
#include "version.h"
#include "vorbiscomment.h" #include "vorbiscomment.h"
#define MAX_PAGE_SIZE 65025 #define MAX_PAGE_SIZE 65025

@ -42,6 +42,7 @@
#include "rtmpcrypt.h" #include "rtmpcrypt.h"
#include "rtmppkt.h" #include "rtmppkt.h"
#include "url.h" #include "url.h"
#include "version.h"
#if CONFIG_ZLIB #if CONFIG_ZLIB
#include <zlib.h> #include <zlib.h>

@ -50,6 +50,7 @@
#include "url.h" #include "url.h"
#include "rtpenc.h" #include "rtpenc.h"
#include "mpegts.h" #include "mpegts.h"
#include "version.h"
/* Default timeout values for read packet in seconds */ /* Default timeout values for read packet in seconds */
#define READ_PACKET_TIMEOUT_S 10 #define READ_PACKET_TIMEOUT_S 10

@ -34,6 +34,7 @@
#include "rdt.h" #include "rdt.h"
#include "tls.h" #include "tls.h"
#include "url.h" #include "url.h"
#include "version.h"
static const struct RTSPStatusMessage { static const struct RTSPStatusMessage {
enum RTSPStatusCode code; enum RTSPStatusCode code;

@ -46,6 +46,7 @@
#if CONFIG_NETWORK #if CONFIG_NETWORK
#include "network.h" #include "network.h"
#endif #endif
#include "version.h"
#include "libavutil/ffversion.h" #include "libavutil/ffversion.h"
const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION; const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION;

@ -29,9 +29,8 @@
#include "libavutil/version.h" #include "libavutil/version.h"
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium) #include "version_major.h"
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 59
#define LIBAVFORMAT_VERSION_MINOR 19 #define LIBAVFORMAT_VERSION_MINOR 19
#define LIBAVFORMAT_VERSION_MICRO 100 #define LIBAVFORMAT_VERSION_MICRO 100
@ -45,22 +44,4 @@
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION) #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
/**
* 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.
*
* @note, when bumping the major version it is recommended to manually
* disable each FF_API_* in its own commit instead of disabling them all
* at once through the bump. This improves the git bisect-ability of the change.
*
*/
#define FF_API_LAVF_PRIV_OPT (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_AVIOCONTEXT_WRITTEN (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59)
#define FF_API_R_FRAME_RATE 1
#endif /* AVFORMAT_VERSION_H */ #endif /* AVFORMAT_VERSION_H */

@ -0,0 +1,53 @@
/*
* 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_MAJOR_H
#define AVFORMAT_VERSION_MAJOR_H
/**
* @file
* @ingroup libavf
* Libavformat version macros
*/
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 59
/**
* 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.
*
* @note, when bumping the major version it is recommended to manually
* disable each FF_API_* in its own commit instead of disabling them all
* at once through the bump. This improves the git bisect-ability of the change.
*
*/
#define FF_API_LAVF_PRIV_OPT (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_AVIOCONTEXT_WRITTEN (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60)
#define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59)
#define FF_API_R_FRAME_RATE 1
#endif /* AVFORMAT_VERSION_MAJOR_H */
Loading…
Cancel
Save