Commit Graph

4249 Commits

Author SHA1 Message Date
openvela-robot 4cc6af2a0e random_seed: Rewrite the generic clock() based seed code
The new code is faster and reuses the previous state in case of
multiple calls.

The previous code could easily end up in near-infinite loops,
if the difference between two clock() calls never was larger than
1.

This makes fate-parseutils finish in finite time when run in wine,
if CryptGenRandom isn't available (which e.g. isn't available if
targeting Windows RT/metro).

Patch originally by Michael Niedermayer but with some modifications
by Martin Storsjö.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:13:56 +08:00
openvela-robot 1937b4b65b Merge commit '98c0cd0b99254cd12f312bf6a4c24cd3ec5886b5'
* commit '98c0cd0b99254cd12f312bf6a4c24cd3ec5886b5':
  hevc: add new conformance streams

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:13:21 +08:00
Luca Barbato c10c2470b5 drawtext: Drop pointless header
It should be forward compatible with newer freetype.
2026-04-20 15:13:19 +08:00
openvela-robot afd74f16ef 4xm: return a proper error code. 2026-04-20 15:13:17 +08:00
openvela-robot c419eae610 vp9_parse: don't use AVCodecParserContext as av_log context.
Fixes trac ticket 3273.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:13:05 +08:00
openvela-robot 294f4ac836 cmdutils: update copyright year to 2014.
Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:13:03 +08:00
Michael Niedermayer 111825bd23 avfilter/vf_format: check that the format list is not empty
Fixes Ticket3210

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:13:01 +08:00
openvela-robot 90e7d604c2 avformat/nutdec: remove unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:13:00 +08:00
openvela-robot 76a607033b lavu: Add values for various Dolby flags to the AVMatrixEncoding enum. 2026-04-20 15:12:57 +08:00
Clément Bœsch 4d7632521c avfilter/lut3d: fix channel order in Iridas format parsing.
According to http://doc.iridas.com/index.php?title=LUT_Formats

    for 3D textures, the data is also RGB, and ordered in such a way
    that the red coordinate changes fastest, then the green coordinate,
    and finally, the blue coordinate changes slowest:

Fixes Ticket #3236.
2026-04-20 15:12:45 +08:00
openvela-robot 051e88c899 doc/ffserver: mention how to access streams through RTSP 2026-04-20 15:12:15 +08:00
openvela-robot e5256b6985 mpegvideo: set reference/pict_type on generated reference frames
Otherwise the generic code will unref them, which can then result in
last_picture_ptr == current_picture_ptr, which causes deadlocks at least
in rv40.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2026-04-20 15:12:11 +08:00
Reimar Döffinger 1c022715bf af_aresample: remove only use of array compound literals with non-const initializers in FFmpeg.
Some older compilers might have particular trouble with them,
and they do not really seem worth it to me.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2026-04-20 15:12:04 +08:00
openvela-robot 2a93a7c79d Allow hiding the banner.
Fixes ticket #3246.
2026-04-20 15:11:59 +08:00
openvela-robot f0b6473e9a lavu: Move preprocessor macros in a separate file
And remove all the circular inclusions of avutil.h while at it.
2026-04-20 15:11:57 +08:00
openvela-robot 74e51ce7dc Merge commit 'b83d1ee3b41cfe8357836e2582104db2f3364cb0'
* commit 'b83d1ee3b41cfe8357836e2582104db2f3364cb0':
  avutil: Move library version related macros to version.h

Conflicts:
	libavcodec/version.h
	libavresample/version.h
	libavutil/avutil.h
	libavutil/utils.c

See: 183117fed7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:11:44 +08:00
openvela-robot 496cba877c avutil: Move library version related macros to version.h
This is a more sensible place for these macros.
2026-04-20 15:11:41 +08:00
Clément Bœsch 6659a6505c avfilter/avectorscope: fix {} mistake in alloc check. 2026-04-20 15:11:39 +08:00
Stefano Sabatini 911ebd3a28 lavfi/abuffersrc: use AV_OPT_TYPE_SAMPLE_FMT for sample_fmt option
Simplify/extend syntax.
2026-04-20 15:11:37 +08:00
Stefano Sabatini 247ae9d9fc lavu,lavfi,lavd: do not hardcode AV_PIX_FMT_NB value when setting pixel format max value
The constant may change in libavutil but the library may be compiled
against an older version, thus rejecting a value which is otherwise
supported by the new libavutil.

INT_MAX is used here to denote the max allowed value for a pixel format.

The opt-test code is changed to provide a valid reference example.
2026-04-20 15:11:37 +08:00
Stefano Sabatini 2d1b83bed9 lavfi/volume: fix NULL reference in filter_frame()
Fix crash.
2026-04-20 15:11:35 +08:00
Stefano Sabatini fe1147fd42 lavfi/volume: extend volume logging 2026-04-20 15:11:35 +08:00
Stefano Sabatini fc40739782 lavfi/volume: implement process_command() callback, with the volume command
Address trac ticket #2868.
2026-04-20 15:11:35 +08:00
Stefano Sabatini 4808616747 lavfi/volume: support volume expression and per-frame expression evaluation
The eval mode allows to evaluate the expression per-frame or just at
init.

In particular, address ticket #3234.
2026-04-20 15:11:35 +08:00
openvela-robot b336a1552c avcodec/vmdav: return the amount of data that has been unpacked from lz_unpack() (as well as errors)
and setup the bytestream buffer size accordingly

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fdcc513cd45_229_12.vmd
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:11:31 +08:00
openvela-robot 2bb7758e9d error.h: Do not circularly depend on avutil.h 2026-04-20 15:11:28 +08:00
openvela-robot a5de5dae3d Merge commit '6c0e83511705e7f8f5100e7852a1e7fd16aa8877'
* commit '6c0e83511705e7f8f5100e7852a1e7fd16aa8877':
  doc: fix a coding style error in the developer documentation.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:11:22 +08:00
openvela-robot 2f85008fcd lavu: fix typo in documentation. 2026-04-20 15:11:14 +08:00
openvela-robot a50620800e nutenc/write_index: warn if 2 consecutive keyframes have the same PTS and discard the 2nd
This fixes an assertion failure and regression and restores previous behaviour
Fixes Ticket3197

An alternative would be to fail hard in this case and refuse to mux such data.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:11:02 +08:00
openvela-robot b1f026f0b7 vc1: Fix intensity compensation performance regression
Introduced by 28243b0d35

Intensity compensation is always used once it was encountered, because
v->next_use_ic is never set back to zero.

Reset v->next_use_ic, when resetting v->next_luty/uv.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:11:00 +08:00
openvela-robot c0cc917938 Merge commit 'be7c323176e2e5fcf30e3d2ff20975b2f936811b'
* commit 'be7c323176e2e5fcf30e3d2ff20975b2f936811b':
  Add a libwebp encoder

Conflicts:
	Changelog
	doc/encoders.texi
	doc/general.texi
	libavcodec/version.h
	libavformat/img2enc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:56 +08:00
openvela-robot 0c1e62781d hevc: move DSP declarations from hevc.h into hevcdsp.h
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:10:54 +08:00
openvela-robot 13494b176c avformat/isom: check avio_read() result
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f7aa4151661_4885_dmbts3.ts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:51 +08:00
openvela-robot cba5fa0f62 Add a libwebp encoder 2026-04-20 15:10:48 +08:00
openvela-robot 66b0d6db8c Merge commit '832e19063209a5f355af733d1a45f5051f49ce33'
* commit '832e19063209a5f355af733d1a45f5051f49ce33':
  vc1: arm: Add NEON assembly

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:32 +08:00
openvela-robot 22d81d3f14 lavc: add HEVC profiles names
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:10:29 +08:00
Stefano Sabatini 3015492edd lavfi/hue: show first decimal value of saturation 2026-04-20 15:10:27 +08:00
Stefano Sabatini caa71fcc9c lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()
The generic version should be faster if optimized.
2026-04-20 15:10:27 +08:00
Stefano Sabatini 43b2d913c6 lavfi/hue: force table initialization for the first frame 2026-04-20 15:10:27 +08:00
openvela-robot 7b20b5b114 avformat/nistspheredec: initialize header_size to -1
Fixes use of uninitialized memory
This also avoids the need to check the scanf() return as the subsequent check catches it
Fixes: msan_uninit-mem_7f712e4dc173_7414_nist_ulaw.nist
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:26 +08:00
openvela-robot a3c7bf6049 x86: mpegvideo: move denoise_dct asm to mpegvideoenc
This function is encoding-only.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 15:10:24 +08:00
openvela-robot d8cf33260a avformat/nistspheredec: check sscanf() success before using the result
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f935c3c6c1a_7413_nist_pcms8.nist
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:19 +08:00
openvela-robot f2930b3df1 configure: Express atomics/thread deps through the dependency system 2026-04-20 15:10:17 +08:00
Lenny Wang 4731b5aa40 lavfi/deshake_opencl: optimze transform filter
Reviewed-by: Wei Gao <highgod0401@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:14 +08:00
openvela-robot 9e35eb8b22 Merge remote-tracking branch 'qatar/master'
* qatar/master:
  fate: Explicitly specify the pixel format for the pngparser test

Conflicts:
	tests/fate/image.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:10:07 +08:00
openvela-robot 087d15d3bf fate: Explicitly specify the pixel format for the pngparser test
The RGB32 pixel format is RGBA/BGRA depending on target
endianness - make sure to convert it to one specific format for
the framecrc tests.

This fixes the pngparser fate test on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:09:58 +08:00
openvela-robot 2150904138 avcodec/dirac_dwt: initialize support value for fidelity wavelet
Avoids use of uninitialized memory
Fixes: msan_uninit-mem_7f15e1988a6e_2748_RL_420p_ffdirac.drc
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:09:54 +08:00
openvela-robot 31da09101f Prepare release notes for Libav 10 "Eks"
Additional editing by Diego Biurrun
2026-04-20 15:09:52 +08:00
openvela-robot 1a15786eaa Merge commit 'd8fd183683b7495566b7e510a6536ae2efe8dfed'
* commit 'd8fd183683b7495566b7e510a6536ae2efe8dfed':
  vc1: Fix mb_height for field pictures

See: 017e234c20
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:09:48 +08:00
openvela-robot 6df9458d97 png_parser: Fix parsing on big endian
Since pc.state is populated by shifting in from the end of the
32 bit word, the content within pc.state is already in native endian
and should not be read with the AV_R{L,B} functions.

This was already done correctly for state64 above.

This fixes the fate-corepng test on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:09:46 +08:00