History

libavformat: Split version.h

Martin Storsjö committed 4 years ago

Commit 4eb92321 parent f2da2e122 files · +75 −23Browse files

Showing the changes to libavformat (18 of 22 files). Show all

Unified · Split

18 files
  1. libavformat/Makefile +1 −0
  2. libavformat/avformat.h +1 −1
  3. libavformat/avio.h +1 −1
  4. libavformat/flacenc.c +1 −0
  5. libavformat/framehash.c +1 −0
  6. libavformat/matroskaenc.c +1 −0
  7. libavformat/mmf.c +1 −0
  8. libavformat/movenc.c +1 −0
  9. libavformat/mux.c +1 −0
  10. libavformat/mxfenc.c +1 −0
  11. libavformat/nutenc.c +1 −0
  12. libavformat/oggenc.c +1 −0
  13. libavformat/rtmpproto.c +1 −0
  14. libavformat/rtsp.c +1 −0
  15. libavformat/rtspdec.c +1 −0
  16. libavformat/utils.c +1 −0
  17. libavformat/version.h +2 −21
  18. libavformat/version_major.h +53 −0
libavformat/Makefile+1−0
@@ -4,6 +4,7 @@ DESC = FFmpeg container format library · 3 unmodified lines
44 HEADERS = avformat.h \
55 avio.h \
66 version.h \
7+ version_major.h \
78
89 OBJS = allformats.o \
910 avio.o \
libavformat/avformat.h+1−1
@@ -319,7 +319,7 @@ · 318 unmodified lines
319319 #include "libavutil/log.h"
320320
321321 #include "avio.h"
322−#include "libavformat/version.h"
322+#include "libavformat/version_major.h"
323323
324324 struct AVFormatContext;
325325 struct AVStream;
libavformat/avio.h+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "libavutil/dict.h"
3434 #include "libavutil/log.h"
3535
36−#include "libavformat/version.h"
36+#include "libavformat/version_major.h"
3737
3838 /**
3939 * Seeking works like for a local file.
libavformat/flacenc.c+1−0
@@ -30,6 +30,7 @@ · 29 unmodified lines
3030 #include "flacenc.h"
3131 #include "id3v2.h"
3232 #include "internal.h"
33+#include "version.h"
3334 #include "vorbiscomment.h"
3435
3536
libavformat/framehash.c+1−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
2020
2121 #include "libavutil/channel_layout.h"
2222 #include "internal.h"
23+#include "version.h"
2324
2425 int ff_framehash_write_header(AVFormatContext *s)
2526 {
libavformat/matroskaenc.c+1−0
@@ -35,6 +35,7 @@ · 34 unmodified lines
3535 #include "isom.h"
3636 #include "matroska.h"
3737 #include "riff.h"
38+#include "version.h"
3839 #include "vorbiscomment.h"
3940 #include "wv.h"
4041
libavformat/mmf.c+1−0
@@ -26,6 +26,7 @@ · 25 unmodified lines
2626 #include "pcm.h"
2727 #include "rawenc.h"
2828 #include "riff.h"
29+#include "version.h"
2930
3031 typedef struct MMFContext {
3132 int64_t atrpos, atsqpos, awapos;
libavformat/movenc.c+1−0
@@ -60,6 +60,7 @@ · 59 unmodified lines
6060 #include "mov_chan.h"
6161 #include "movenc_ttml.h"
6262 #include "ttmlenc.h"
63+#include "version.h"
6364 #include "vpcc.h"
6465
6566 static const AVOption options[] = {
libavformat/mux.c+1−0
@@ -21,6 +21,7 @@ · 20 unmodified lines
2121
2222 #include "avformat.h"
2323 #include "internal.h"
24+#include "version.h"
2425 #include "libavcodec/bsf.h"
2526 #include "libavcodec/internal.h"
2627 #include "libavcodec/packet_internal.h"
libavformat/mxfenc.c+1−0
@@ -58,6 +58,7 @@ · 57 unmodified lines
5858 #include "avc.h"
5959 #include "mxf.h"
6060 #include "config.h"
61+#include "version.h"
6162
6263 extern const AVOutputFormat ff_mxf_d10_muxer;
6364 extern const AVOutputFormat ff_mxf_opatom_muxer;
libavformat/nutenc.c+1−0
@@ -34,6 +34,7 @@ · 33 unmodified lines
3434 #include "internal.h"
3535 #include "avio_internal.h"
3636 #include "riff.h"
37+#include "version.h"
3738
3839 static int find_expected_header(AVCodecParameters *p, int size, int key_frame,
3940 uint8_t out[64])
libavformat/oggenc.c+1−0
@@ -31,6 +31,7 @@ · 30 unmodified lines
3131 #include "avformat.h"
3232 #include "avio_internal.h"
3333 #include "internal.h"
34+#include "version.h"
3435 #include "vorbiscomment.h"
3536
3637 #define MAX_PAGE_SIZE 65025
libavformat/rtmpproto.c+1−0
@@ -42,6 +42,7 @@ · 41 unmodified lines
4242 #include "rtmpcrypt.h"
4343 #include "rtmppkt.h"
4444 #include "url.h"
45+#include "version.h"
4546
4647 #if CONFIG_ZLIB
4748 #include <zlib.h>
libavformat/rtsp.c+1−0
@@ -50,6 +50,7 @@ · 49 unmodified lines
5050 #include "url.h"
5151 #include "rtpenc.h"
5252 #include "mpegts.h"
53+#include "version.h"
5354
5455 /* Default timeout values for read packet in seconds */
5556 #define READ_PACKET_TIMEOUT_S 10
libavformat/rtspdec.c+1−0
@@ -34,6 +34,7 @@ · 33 unmodified lines
3434 #include "rdt.h"
3535 #include "tls.h"
3636 #include "url.h"
37+#include "version.h"
3738
3839 static const struct RTSPStatusMessage {
3940 enum RTSPStatusCode code;
libavformat/utils.c+1−0
@@ -46,6 +46,7 @@ · 45 unmodified lines
4646 #if CONFIG_NETWORK
4747 #include "network.h"
4848 #endif
49+#include "version.h"
4950
5051 #include "libavutil/ffversion.h"
5152 const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
libavformat/version.h+2−21
@@ -29,9 +29,8 @@ · 28 unmodified lines
2929
3030 #include "libavutil/version.h"
3131
32−// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
33−// Also please add any ticket numbers that you believe might be affected here
34−#define LIBAVFORMAT_VERSION_MAJOR 59
32+#include "version_major.h"
33+
3534 #define LIBAVFORMAT_VERSION_MINOR 19
3635 #define LIBAVFORMAT_VERSION_MICRO 100
3736
@@ -45,22 +44,4 @@ · 7 unmodified lines
4544
4645 #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
4746
48−/**
49− * FF_API_* defines may be placed below to indicate public API that will be
50− * dropped at a future version bump. The defines themselves are not part of
51− * the public API and may change, break or disappear at any time.
52− *
53− * @note, when bumping the major version it is recommended to manually
54− * disable each FF_API_* in its own commit instead of disabling them all
55− * at once through the bump. This improves the git bisect-ability of the change.
56− *
57− */
58−#define FF_API_LAVF_PRIV_OPT (LIBAVFORMAT_VERSION_MAJOR < 60)
59−#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 60)
60−#define FF_API_AVIOCONTEXT_WRITTEN (LIBAVFORMAT_VERSION_MAJOR < 60)
61−#define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60)
62−#define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59)
63−
64−
65−#define FF_API_R_FRAME_RATE 1
6647 #endif /* AVFORMAT_VERSION_H */
libavformat/version_major.h+53−0
@@ -0,0 +1,53 @@
1+/*
2+ * Version macros.
3+ *
4+ * This file is part of FFmpeg.
5+ *
6+ * FFmpeg is free software; you can redistribute it and/or
7+ * modify it under the terms of the GNU Lesser General Public
8+ * License as published by the Free Software Foundation; either
9+ * version 2.1 of the License, or (at your option) any later version.
10+ *
11+ * FFmpeg is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+ * Lesser General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU Lesser General Public
17+ * License along with FFmpeg; if not, write to the Free Software
18+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+ */
20+
21+#ifndef AVFORMAT_VERSION_MAJOR_H
22+#define AVFORMAT_VERSION_MAJOR_H
23+
24+/**
25+ * @file
26+ * @ingroup libavf
27+ * Libavformat version macros
28+ */
29+
30+// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
31+// Also please add any ticket numbers that you believe might be affected here
32+#define LIBAVFORMAT_VERSION_MAJOR 59
33+
34+/**
35+ * FF_API_* defines may be placed below to indicate public API that will be
36+ * dropped at a future version bump. The defines themselves are not part of
37+ * the public API and may change, break or disappear at any time.
38+ *
39+ * @note, when bumping the major version it is recommended to manually
40+ * disable each FF_API_* in its own commit instead of disabling them all
41+ * at once through the bump. This improves the git bisect-ability of the change.
42+ *
43+ */
44+#define FF_API_LAVF_PRIV_OPT (LIBAVFORMAT_VERSION_MAJOR < 60)
45+#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 60)
46+#define FF_API_AVIOCONTEXT_WRITTEN (LIBAVFORMAT_VERSION_MAJOR < 60)
47+#define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60)
48+#define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59)
49+
50+
51+#define FF_API_R_FRAME_RATE 1
52+
53+#endif /* AVFORMAT_VERSION_MAJOR_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t