Martin Storsjö
884c597659
libavdevice: Split version.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
Martin Storsjö
4eb9232c6e
libavformat: Split version.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
Martin Storsjö
f2da2e1458
libavcodec: Split version.h
...
This avoids including version.h in all source files, avoiding
unnecessary rebuilds when the version number is bumped. Only
version_major.h is included by the main header, which defines
availability of e.g. FF_API_* macros, and which is bumped much
less often.
This isn't done for libavutil/version.h, because that header needs
to be included essentially everywhere due to LIBAVUTIL_VERSION_INT
being used wherever an AVClass is constructed.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
James Almer
f2fe17c56d
avutil/channel_layout: remove duplicate stereo downmix entry
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Michael Niedermayer
9805a0004c
tools/target_dec_fuzzer: Fix build failure from channels API
...
Regression since 2f8ccca2fa
and surrounding commits
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Marton Balint
ab7a929684
avutil/channel_layout: do not copy alloc new map for extra channel layout
...
Also use av_channel_layout_bprint directly for describing channel layout for
extra channels.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Marton Balint
92f27c6728
avutil/channel_layout: fix av_channel_layout_describe_bprint with custom and ambisonic channels
...
bp->len cannot be used to detect if try_describe_ambisonic was successful
because the bprint buffer might contain other data as well.
Also describing an invalid ambisonic layout should not return 0 but
AVERROR(EINVAL) instead, so change try_describe_ambisonic to actually return
error on invalid ambisonics. This also allows us to fix the first issue.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Marton Balint
580f7b6c3a
avutil/channel_layout: factorize ambisonic order detection
...
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Marton Balint
bd40375dd2
avutil/channel_layout: print channels using av_channel_name_bprint in av_channel_layout_describe_bprint
...
This reduces code duplication an allows printing AMBI%d channel names for
custom layouts for non-standard or partial ambisonic layouts.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Michael Niedermayer
bf5099b12b
tests: Add fate-bsf-dv-error-marker
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years ago
James Almer
3aeeee1597
avcodec/hevc_refs: don't use the frame's AVBufferRef sizes when initializing planes
...
Use the actual plane sizes instead.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
f5d67469b0
avfilter/buffersink: simplify parsing the input channel layout string
...
And remove a stray comma in the list of supported separators.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Marton Balint
ef2b3efd51
avcodec/codec_par: do not copy AVChannelLayout struct directly
...
Later we use av_channel_layout_copy, but that uninits the struct
unintentionally freeing the possibly allocated u.map pointer.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Paul B Mahol
93a076db70
avfilter/af_biquads: fix possible leak on error
...
Recently introduced.
3 years ago
Andreas Rheinhardt
ac7dc20a5d
avfilter/af_join: Don't use memcpy for overlapping regions
...
Reported by ASAN as memcpy-param-overlap when running
the filter-join FATE-test.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
9e241bdffd
avutil/channel_layout: Fix leak of string
...
Fixes memleaks in the channel_layout FATE-test.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Paul B Mahol
5b59c072f5
avfilter/af_biquads: fix regression with channels option processing
3 years ago
Paul B Mahol
9f81d12f87
avfilter/af_dynaudnorm: fix regression with channels option processing
3 years ago
Paul B Mahol
07c16cdd94
avfilter/af_speechnorm: fix regression in channels option processing
3 years ago
Paul B Mahol
bd5da8ad96
avfilter/af_afftdn: refactor noise sampling
3 years ago
Paul B Mahol
a2eb13c7e5
avfilter/af_afftdn: do not hardcode vector size
3 years ago
Paul B Mahol
26292d4b6b
avfilter/af_afftdn: use log10 instead to get noise levels
3 years ago
Paul B Mahol
4a96baa2c8
avfilter/af_afftdn: unbreak custom band noise option processing
3 years ago
Paul B Mahol
098528ec59
avfilter/af_afftdn: after sampling noise, set full parameters
3 years ago
James Almer
cdba98bb80
Bump minor versions after the channel layout changes
...
Forgotten in the respective commits adding new API.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
55740299ef
avfilter/af_sofalizer: fix getting speaker position
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
f0be7c1057
avcodec/audiotoolboxenc: add missing AVCodec.ch_layouts
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
739c96ba1a
avcodec/dca_lbr: set nchannels
...
Fixes warnings about uninitialized values
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
a02663d997
avcodec/audiotoolboxenc: use the correct macros for standard channel layouts
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Martin Storsjö
6383862ae2
avcodec/audiotoolboxenc: Fix the use of FF_ARRAY_ELEMS
...
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
James Almer
793c85bc4d
avcodec/audiotoolboxenc: use the correct function name
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
6f8b8e6332
mov: Implement spatial audio support
...
As defined by Google's Spatial Audio RFC.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
e6358ec1ac
opus: export mapping family 2 (Ambisonic) as Ambisonic layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
886847afa0
channel_layout: add support for Ambisonic
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
2f8ccca2fa
tools/target_{bsf,dec}_fuzzer: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
f5ef91e020
doc/examples: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
50e9e11316
tools: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
7d532f474d
tests: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
0995e1f1b3
ffplay: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
a8b885f294
ffprobe: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
987763ac35
ffmpeg: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
53d60aafaf
avdevice/lavfi: remove call to deprecated function av_buffersink_get_channel_layout()
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
1f96db959c
avfilter: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
8a5896ec1f
swresample: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
b2d6e7a289
lavf: Add non diegetic stream disposition flag
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
5636972c7a
lavc: drop temporary compat wrappers for channel layout API change
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
bfe86a761a
ws-snd1: convert to new channel layout API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
3c933af493
wma: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
03ba5cf321
wavpack: convert to new channel layout API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
457e88fcaf
vorbis: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago