Skip to content

Commit dd1688f

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 0bf036a + da5497a commit dd1688f

File tree

513 files changed

+9796
-7621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+9796
-7621
lines changed

Changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ version <next>:
2020
- MSN Siren decoder
2121
- scharr video filter
2222
- apsyclip audio filter
23+
- morpho video filter
2324

2425

2526
version 4.4:

compat/w32dlfcn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static inline HMODULE win32_dlopen(const char *name)
4242
DWORD pathlen;
4343
if (utf8towchar(name, &name_w))
4444
goto exit;
45-
path = (wchar_t *)av_mallocz_array(MAX_PATH, sizeof(wchar_t));
45+
path = (wchar_t *)av_calloc(MAX_PATH, sizeof(wchar_t));
4646
// Try local directory first
4747
pathlen = GetModuleFileNameW(NULL, path, MAX_PATH);
4848
pathlen = wcsrchr(path, '\\') - path;

configure

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
17651765
EXTERNAL_LIBRARY_NONFREE_LIST="
17661766
decklink
17671767
libfdk_aac
1768-
openssl
17691768
libtls
17701769
"
17711770

@@ -1857,6 +1856,7 @@ EXTERNAL_LIBRARY_LIST="
18571856
mediacodec
18581857
openal
18591858
opengl
1859+
openssl
18601860
pocketsphinx
18611861
vapoursynth
18621862
"
@@ -3597,8 +3597,9 @@ firequalizer_filter_select="rdft"
35973597
flite_filter_deps="libflite"
35983598
framerate_filter_select="scene_sad"
35993599
freezedetect_filter_select="scene_sad"
3600-
frei0r_filter_deps="frei0r libdl"
3601-
frei0r_src_filter_deps="frei0r libdl"
3600+
frei0r_deps_any="libdl LoadLibrary"
3601+
frei0r_filter_deps="frei0r"
3602+
frei0r_src_filter_deps="frei0r"
36023603
fspp_filter_deps="gpl"
36033604
histeq_filter_deps="gpl"
36043605
hqdn3d_filter_deps="gpl"
@@ -3725,7 +3726,6 @@ cws2fws_extralibs="zlib_extralibs"
37253726
# libraries, in any order
37263727
avcodec_deps="avutil"
37273728
avcodec_suggest="libm"
3728-
avcodec_select="null_bsf"
37293729
avdevice_deps="avformat avcodec avutil"
37303730
avdevice_suggest="libm"
37313731
avfilter_deps="avutil"
@@ -5009,9 +5009,11 @@ elif enabled arm; then
50095009
fi
50105010
}
50115011

5012-
[ "$cpu" = generic ] && cpu=$(probe_arm_arch)
50135012

50145013
case $cpu in
5014+
generic)
5015+
subarch=$(probe_arm_arch | sed 's/[^a-z0-9]//g')
5016+
;;
50155017
armv*)
50165018
cpuflags="-march=$cpu"
50175019
subarch=$(echo $cpu | sed 's/[^a-z0-9]//g')
@@ -6384,7 +6386,7 @@ enabled cuda_nvcc && { check_nvcc cuda_nvcc || die "ERROR: failed checki
63846386
enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint
63856387
enabled decklink && { require_headers DeckLinkAPI.h &&
63866388
{ test_cpp_condition DeckLinkAPIVersion.h "BLACKMAGIC_DECKLINK_API_VERSION >= 0x0a0b0000" || die "ERROR: Decklink API version must be >= 10.11"; } }
6387-
enabled frei0r && require_headers "frei0r.h dlfcn.h"
6389+
enabled frei0r && require_headers "frei0r.h"
63886390
enabled gmp && require gmp gmp.h mpz_export -lgmp
63896391
enabled gnutls && require_pkg_config gnutls gnutls gnutls/gnutls.h gnutls_global_init
63906392
enabled jni && { [ $target_os = "android" ] && check_headers jni.h && enabled pthreads || die "ERROR: jni not found"; }
@@ -6573,7 +6575,10 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR
65736575
die "ERROR: OpenMAX IL headers from raspberrypi/firmware not found"; } &&
65746576
enable omx
65756577
enabled omx && require_headers OMX_Core.h
6576-
enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
6578+
enabled openssl && { { check_pkg_config openssl "openssl >= 3.0.0" openssl/ssl.h OPENSSL_init_ssl &&
6579+
{ enabled gplv3 || ! enabled gpl || enabled nonfree || die "ERROR: OpenSSL >=3.0.0 requires --enable-version3"; }; } ||
6580+
{ enabled gpl && ! enabled nonfree && die "ERROR: OpenSSL <3.0.0 is incompatible with the gpl"; } ||
6581+
check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
65776582
check_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
65786583
check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
65796584
check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||

doc/APIchanges

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ libavutil: 2021-04-27
1414

1515
API changes, most recent first:
1616

17+
2021-09-21 - xxxxxxxxxx - lavu 57.7.100 - pixfmt.h
18+
Add AV_PIX_FMT_X2BGR10.
19+
20+
2021-09-20 - xxxxxxxxxx - lavu 57.6.100 - mem.h
21+
Deprecate av_mallocz_array() as it is identical to av_calloc().
22+
23+
2021-09-20 - xxxxxxxxxx - lavc 59.9.100 - avcodec.h
24+
Deprecate AVCodecContext.sub_text_format and the corresponding
25+
AVOptions. It is unused since the last major bump.
26+
27+
2021-09-20 - xxxxxxxxxx - lavc 59.8.100 - avcodec.h codec.h
28+
Deprecate AV_CODEC_FLAG_TRUNCATED and AV_CODEC_CAP_TRUNCATED,
29+
as they are redundant with parsers.
30+
31+
2021-09-17 - xxxxxxxxxx - lavu 57.5.101 - buffer.h
32+
Constified the input parameters in av_buffer_replace(), av_buffer_ref(),
33+
and av_buffer_pool_buffer_get_opaque().
34+
1735
2021-09-08 - xxxxxxxxxx - lavu 57.5.100 - hwcontext_d3d11va.h
1836
Add AVD3D11VAFramesContext.texture_infos
1937

doc/decoders.texi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,19 @@ The following options are supported by the libdav1d wrapper.
7676

7777
@item framethreads
7878
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
79+
This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use the
80+
global option @code{threads} instead.
7981

8082
@item tilethreads
8183
Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
84+
This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use the
85+
global option @code{threads} instead.
8286

8387
@item filmgrain
8488
Apply film grain to the decoded video if present in the bitstream. Defaults to the
8589
internal default of the library.
90+
This option is deprecated and will be removed in the future. See the global option
91+
@code{export_side_data} to export Film Grain parameters instead of applying it.
8692

8793
@item oppoint
8894
Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the

doc/demuxers.texi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ directive) will be reduced based on their specified Out point.
150150
Metadata of the packets of the file. The specified metadata will be set for
151151
each file packet. You can specify this directive multiple times to add multiple
152152
metadata entries.
153+
This directive is deprecated, use @code{file_packet_meta} instead.
154+
155+
@item @code{file_packet_meta @var{key} @var{value}}
156+
Metadata of the packets of the file. The specified metadata will be set for
157+
each file packet. You can specify this directive multiple times to add multiple
158+
metadata entries.
153159

154160
@item @code{option @var{key} @var{value}}
155161
Option to access, open and probe the file.
@@ -171,6 +177,20 @@ subfiles will be used.
171177
This is especially useful for MPEG-PS (VOB) files, where the order of the
172178
streams is not reliable.
173179

180+
@item @code{stream_meta @var{key} @var{value}}
181+
Metadata for the stream.
182+
Can be present multiple times.
183+
184+
@item @code{stream_codec @var{value}}
185+
Codec for the stream.
186+
187+
@item @code{stream_extradata @var{hex_string}}
188+
Extradata for the string, encoded in hexadecimal.
189+
190+
@item @code{chapter @var{id} @var{start} @var{end}}
191+
Add a chapter. @var{id} is an unique identifier, possibly small and
192+
consecutive.
193+
174194
@end table
175195

176196
@subsection Options

doc/encoders.texi

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,12 +1750,30 @@ You need to explicitly configure the build with @code{--enable-libsvtav1}.
17501750
@table @option
17511751
@item profile
17521752
Set the encoding profile.
1753+
@table @samp
1754+
@item main
1755+
@item high
1756+
@item professional
1757+
@end table
17531758

17541759
@item level
1755-
Set the operating point level.
1760+
Set the operating point level. For example: '4.0'
1761+
1762+
@item hielevel
1763+
Set the Hierarchical prediction levels.
1764+
@table @samp
1765+
@item 3level
1766+
@item 4level
1767+
This is the default.
1768+
@end table
17561769

17571770
@item tier
17581771
Set the operating point tier.
1772+
@table @samp
1773+
@item main
1774+
This is the default.
1775+
@item high
1776+
@end table
17591777

17601778
@item rc
17611779
Set the rate control mode to use.

doc/examples/remuxing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int main(int argc, char **argv)
8585
}
8686

8787
stream_mapping_size = ifmt_ctx->nb_streams;
88-
stream_mapping = av_mallocz_array(stream_mapping_size, sizeof(*stream_mapping));
88+
stream_mapping = av_calloc(stream_mapping_size, sizeof(*stream_mapping));
8989
if (!stream_mapping) {
9090
ret = AVERROR(ENOMEM);
9191
goto end;

doc/examples/transcoding.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int open_input_file(const char *filename)
7272
return ret;
7373
}
7474

75-
stream_ctx = av_mallocz_array(ifmt_ctx->nb_streams, sizeof(*stream_ctx));
75+
stream_ctx = av_calloc(ifmt_ctx->nb_streams, sizeof(*stream_ctx));
7676
if (!stream_ctx)
7777
return AVERROR(ENOMEM);
7878

doc/ffprobe.xsd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@
269269
<xsd:attribute name="program_id" type="xsd:int" use="required"/>
270270
<xsd:attribute name="program_num" type="xsd:int" use="required"/>
271271
<xsd:attribute name="nb_streams" type="xsd:int" use="required"/>
272-
<xsd:attribute name="start_time" type="xsd:float"/>
273-
<xsd:attribute name="start_pts" type="xsd:long"/>
274-
<xsd:attribute name="end_time" type="xsd:float"/>
275-
<xsd:attribute name="end_pts" type="xsd:long"/>
276272
<xsd:attribute name="pmt_pid" type="xsd:int" use="required"/>
277273
<xsd:attribute name="pcr_pid" type="xsd:int" use="required"/>
278274
</xsd:complexType>

0 commit comments

Comments
 (0)