Pierre-Anthony Lemieux
2a1eae2179
avformat/concat: refactor to use ff_rescale_interval()
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
f409c78517
avformat/imf: refactor to use ff_rescale_interval()
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
8744b103da
avformat/tests: add test for ff_rescale_interval()
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
b172c0f8c5
avformat/seek: add ff_rescale_interval() function
...
Refactors a function used by avformat/concat and avformat/imf.
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
22e1175e39
avformat/imf: clean-up and reduce logging
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
32b9f5ac2f
avformat/imf: add support for input seeking
...
The IMF demuxer did not implement AVInputFormat::read_seek2(), resulting in
inefficient input seeking.
Addresses https://trac.ffmpeg.org/ticket/9648
Byte- and frame-seeking are not supported.
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Pierre-Anthony Lemieux
9ca4d80d6b
avformat/imf: relocate static function imf_time_to_ts()
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
3 years ago
Andreas Rheinhardt
9cae7f9450
avcodec/zlib_wrapper: Add wrapper for deflateInit()
...
The rationale is the same as for the wrappers for inflateInit(),
although the case for it is admittedly not so strong because
there are less users of deflateInit().
Also remove an unnecessary inclusion of config.h in
libavformat/protocols.c in order to trigger a request for reconfigure
(which is needed for CONFIG_DEFLATE_WRAPPER to take effect).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Martin Storsjö
2d368392a5
Keep including the full version.h when headers are included externally
...
This avoids unnecessary churn and build breakage for users, by
making sure the whole version.h is included like it has been so far,
while keeping the benefit of not needing to rebuild most files in
the ffmpeg tree on minor/micro bumps.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
Paul B Mahol
fce0127642
avformat/pcmdec: add support to set channel layout
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years ago
Michael Niedermayer
710e51677a
avformat/matroskadec: Check pre_ns
...
Fixes: division by 0
Fixes: 44615/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6681108677263360
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years ago
Michael Niedermayer
bd3a03db9a
avformat/matroskadec: Use rounded down duration in get_cue_desc() check
...
Floating point is evil, it would be better if duration was not a double
Fixes: Infinite loop
Fixes: 45123/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6725052291219456
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years ago
James Almer
0af06344cd
avformat/boadec: fix check for invalid channel count
...
Regression since 8269fbcb7a
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Andreas Rheinhardt
814f806e06
avformat/imfdec: Convert to the new channel layout API
...
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Marton Balint
ffff5bb740
avformat/mxfenc: do not write index tables with the same InstanceUID
...
Only index tables repeating previous index tables should use the same
InstaceUID. Use the index start position when generating the InstanceUID to fix
this.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Marton Balint
4afe4a542e
avformat/mxfenc: allow more bits for variable part in uuid generation
...
Also make sure we do not change the product UID.
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years ago
Martin Storsjö
a78f136f3f
configure: Use a separate config_components.h header for $ALL_COMPONENTS
...
This avoids unnecessary rebuilds of most source files if only the
list of enabled components has changed, but not the other properties
of the build, set in config.h.
Signed-off-by: Martin Storsjö <martin@martin.st>
3 years ago
Martin Storsjö
f3a0e2ee2b
doc: Add an entry to APIchanges about changes to version.h and version_major.h
...
Also bump the minor versions of all libraries, to signify the
API change of splitting the version.h headers and adding the
new version_major.h header.
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
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
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
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
Vittorio Giovara
548aeb9383
lavc: switch to the new channel layout API
...
Since the request_channel_layout is used only by a handful of codecs,
move the option to codec private contexts.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
b6746b7462
lavf: drop the channel layout compat layer for old-style (de)muxers
...
All the (de)muxers have been converted to the new API.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
4f7c45208e
xvag: 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
Vittorio Giovara
fdfbc47a0d
wve: 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
Vittorio Giovara
841d2d51c2
wsd: convert to new channel layout API
...
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
Vittorio Giovara
bc67df697b
yop: 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
Vittorio Giovara
95bf5877f4
xwma: 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
Vittorio Giovara
9fd38874ea
xmv: 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
Vittorio Giovara
1e5f4f81af
xa: 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
Vittorio Giovara
6ad44980ae
wv: 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
Vittorio Giovara
b0e5661194
wtv: 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
Vittorio Giovara
0116c9162e
westwood: 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
Vittorio Giovara
36fc3e9b05
wc3movie: 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
Vittorio Giovara
95a3f13cfd
wav: convert to new channel layout API
...
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
Vittorio Giovara
ba36f3fd79
vqf: convert to new channel layout API
...
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
8eda3c7f91
vpk: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
a3129027eb
voc: convert to new channel layout API
...
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
7591de37e6
vivo: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
f799b6e23c
vividas: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Anton Khirnov
15c6547829
vag: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
4b58583171
uncodedframecrcenc: convert to new channel layout API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Vittorio Giovara
5df73d5b4c
tta: convert to new channel layout API
...
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
Vittorio Giovara
01910fec68
tmv: 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
Vittorio Giovara
4792dc1f1a
tiertexseq: 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
Vittorio Giovara
da903bf1fb
thp: 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
Vittorio Giovara
30b46fb980
tak: 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
Vittorio Giovara
9ff843eb4a
swf: 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