Commit Graph

3323 Commits

Author SHA1 Message Date
openvela-robot cd2f74bf26 vp9: don't allow retaining old segmentation maps after a size change.
Fixes valgrind warnings on fuzzed10.ivf.
2026-04-20 15:22:22 +08:00
openvela-robot 8731b8b8fb mlpdec: fix request_channel_layout behavior.
When request_channel_layout is 0,
all substreams should be decoded.

Signed-off-by: Tim Walker <tdskywalker@gmail.com>
2026-04-20 15:22:20 +08:00
openvela-robot 6ae0c59938 Merge commit '0cffd6fff59f192120dc93aa6c3cb8180f5506e3'
* commit '0cffd6fff59f192120dc93aa6c3cb8180f5506e3':
  x86: use the inline int8x8_fmul_int32 only if inline SSE2 is availbale

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:22:12 +08:00
openvela-robot 179d948c1a Mirillis FIC video decoder
Does not contain cursor rendering yet.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 15:22:08 +08:00
openvela-robot 4623cacccb x86/cpu: add missing avx2 AVOption in av_parse_cpu_flags()
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:21:47 +08:00
openvela-robot e3d28877ff vp8: fix bilinear C code to work if src_stride != dst_stride.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2026-04-20 15:21:45 +08:00
openvela-robot 12842935ab Merge remote-tracking branch 'qatar/master'
* qatar/master:
  vp8: Use 2 registers for dst_stride and src_stride in neon bilin filter

Conflicts:
	libavcodec/arm/vp8dsp_neon.S

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:21:43 +08:00
openvela-robot 97f72b2c75 vp8: Use 2 registers for dst_stride and src_stride in neon bilin filter
Based on a patch by Ronald S. Bultje.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:21:41 +08:00
openvela-robot 70aedb2195 ogg: allow streams to update metadata
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:21:36 +08:00
openvela-robot b297838cd0 fate: force the simple idct for xvid custom matrix test
The original test without a forced idct is still useful since it tests
the switching of the idct algorithm/permutation on x86 with MMX. MMXext
or SSE2. Make sure the test runs only if MMX inline asm is available and
force -cpuflags to all.
Add the required bitexact flag for both tests.
2026-04-20 15:21:34 +08:00
openvela-robot 35fd432378 ffplay: reorder the filters to ensure that inputs of the custom filters are merged first
For more info see http://ffmpeg.org/pipermail/ffmpeg-user/2013-December/018761.html

Signed-off-by: Marton Balint <cus@passwd.hu>
2026-04-20 15:21:20 +08:00
openvela-robot 6f57a4b1ef eacmv: clear references on frame dimensions change
Fixes invalid reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2026-04-20 15:21:18 +08:00
openvela-robot 54a979ce9b Merge commit 'de203abd71baae7f120313259b45cf935c85203e'
* commit 'de203abd71baae7f120313259b45cf935c85203e':
  vf_overlay: add eof_action switch

Conflicts:
	doc/filters.texi
	libavfilter/vf_overlay.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:21:10 +08:00
openvela-robot 6ce5750c8c avcodec: Suppress deprecation warnings from avcodec_alloc_frame()
The function is itself obsolete and slated for removal.
2026-04-20 15:21:08 +08:00
openvela-robot 7c1f29c4a5 Merge commit 'b25e84b7399bd91605596b67d761d3464dbe8a6e'
* commit 'b25e84b7399bd91605596b67d761d3464dbe8a6e':
  hevc: check that the VCL NAL types are the same for all slice segments of a frame

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:21:05 +08:00
openvela-robot e12f8a9dba vf_overlay: add eof_action switch
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:21:03 +08:00
openvela-robot 5d3e82ddaa RoQ decoder: Remove misleading diagnostics.
It is not necessarily an error when a chunk does not cover a whole block.
Messages did not reflect the actual situation either.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:20:37 +08:00
openvela-robot 58bf3b3d1f mxf: Handle negative edit_rate
Default to 1/25.
2026-04-20 15:20:35 +08:00
openvela-robot 51478b44d8 Merge commit '51daafb02eaf96e0743a37ce95a7f5d02c1fa3c2'
* commit '51daafb02eaf96e0743a37ce95a7f5d02c1fa3c2':
  x86: videodsp: Properly mark sse2 instructions in emulated_edge_mc as such.

Conflicts:
	libavcodec/x86/videodsp_init.c

See: 1b3a7e1f42
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:20:27 +08:00
openvela-robot e1a98d6b05 xvid: switch to xvid mmx idct as soon as possible
The idct implementation cannot be changed after the quantization matrices
are read since it use a different permutaion.

Bug-Id: videolan/7411
2026-04-20 15:20:24 +08:00
openvela-robot ee5e3873d7 Merge remote-tracking branch 'qatar/master'
* qatar/master:
  doc: document correct option to list encoders

Conflicts:
	doc/encoders.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:20:21 +08:00
openvela-robot 3f3c96e85b x86: videodsp: Properly mark sse2 instructions in emulated_edge_mc as such.
Should fix crashes or corrupt output on pre-SSE2 CPUs when they were
using SSE2-code (e.g. AMD Athlon XP 2400+ or Intel Pentium III) in
hfix or hvar single-edge (left/right) extension functions.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2026-04-20 15:20:18 +08:00
openvela-robot fefc7a27cf Merge remote-tracking branch 'qatar/master'
* qatar/master:
  avformat: utils: Refactor duplicated PRINT macro

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:20:13 +08:00
openvela-robot ff30c0e82e ac3dec: Allow asymmetric application of DRC when drc_scale > 1
Amplification of quiet sounds is enhanced.
Inspired by gbooker's A52Decoder.
2026-04-20 15:20:10 +08:00
openvela-robot 6869d5bcd3 Merge remote-tracking branch 'qatar/master'
* qatar/master:
  mpeg: Drop unused parameters from ff_draw_horiz_band()

Conflicts:
	libavcodec/mpegvideo.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:19:55 +08:00
openvela-robot 8a4259b899 mpeg: Drop unused parameters from ff_draw_horiz_band() 2026-04-20 15:19:53 +08:00
openvela-robot 5fd9ca7cfa avcodec/huffyuvdec: optimize >8bps VLC reading
97479 -> 54891 decicycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:19:45 +08:00
openvela-robot f2e765cb18 x86inc: Speed up assembling with Yasm
Work around Yasm's inefficiency with handling large numbers of variables
in the global scope.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 15:19:43 +08:00
openvela-robot 41ee4e1ac3 configure: add missing dependency for the remuxing example 2026-04-20 15:19:40 +08:00
openvela-robot 393d711b76 avformat: utils: K&R formatting cosmetics
Also adjust some comment wording / spelling and reorder header #includes.
2026-04-20 15:19:38 +08:00
openvela-robot 806de3d599 avcodec/huffyuv: support AV_PIX_FMT_YUV(A)4XYP16 and GRAY16
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:19:31 +08:00
openvela-robot ba891e3d62 avutil: remove timer.h include from internal.h
Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
2026-04-20 15:19:29 +08:00
openvela-robot f5fc58804d avutil/opt: Better print representation of number limits
Signed-off-by: João Bernardo Oliveira <jbvsmo@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:19:20 +08:00
openvela-robot c3d7735bf5 dxtory: add more compressed and uncompressed modes 2026-04-20 15:19:17 +08:00
openvela-robot 716cd0f61c doc/ffmpeg: reference time syntax sections in ffmpeg-utils for itsoffset and timestamp options
Avoid doc duplication and desynching.
2026-04-20 15:19:12 +08:00
openvela-robot d84a019bbf vp9: fix mvref finding to adhere to bug in libvpx.
Fixes a particular youtube video that I unfortunately can't share.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:19:10 +08:00
openvela-robot 9c3baa8620 avcodec/x86/lossless_videodsp: add diff_int16_mmx/sse2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:19:03 +08:00
openvela-robot a29916ca1d mpegvideo_enc: Don't call ff_h263dsp_init unconditionally
This fixes builds with e.g. --disable-decoders --disable-encoders
--enable-encoder=mjpeg.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:19:00 +08:00
openvela-robot 8bd9297790 Adding Cinepak encoder
With permission of Tomas Härdin applied by Rl aetey.se

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:18:55 +08:00
openvela-robot 98a7f248b6 h264: skip chroma edges at the picture boundary while deblocking 4:4:4
This handles macroblock edges for the chroma components in the same way
as for the luma compoment for 4:4:4 streams. The Spec explicitly states
that the deblocking filter is not applied to edges at the boundary of
the picture.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2026-04-20 15:18:53 +08:00
openvela-robot a95634e01d lossless_videodsp.asm: fix compilation.
Fixes these errors with nasm:
libavcodec/x86/lossless_videodsp.asm:86: error: invalid combination of opcode and operands
libavcodec/x86/lossless_videodsp.asm:88: error: invalid combination of opcode and operands
I don't know whether movd or movq was meant, but either way
maskq vs. maskd must match the mov size.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2026-04-20 15:18:39 +08:00
openvela-robot aaa3bcb52a lavc: do not force the emu edge flag
The default get_buffer2() implementation (and possibly some
user ones) does not allocate edges when this flag is set, which may
expose bugs in some decoders. Until the 10 release is out, it is safer
to remove this part.
2026-04-20 15:18:29 +08:00
openvela-robot f2f4f5b39b Merge commit 'a7a07cc98ac548297b5b0628cb81280e11952e3f'
* commit 'a7a07cc98ac548297b5b0628cb81280e11952e3f':
  hevc: check that VPS referenced from SPS exists

Conflicts:
	libavcodec/hevc_ps.c

See: d66bab0a69
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:18:11 +08:00
openvela-robot 17cc79a398 hevc: check that VPS referenced from SPS exists
This matches how its done for SPS/PPS.
Fixes null pointer dereference.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:18:08 +08:00
openvela-robot 18e594451c avcodec/x86/lossless_videodsp: use SPLATW in add_int16
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:18:01 +08:00
openvela-robot e7c8b94b5a vc1: Always reset numref when parsing a new frame header.
Fixes an issue where the B-frame coding mode switches from interlaced
fields to interlaced frames, causing incorrect decisions in the motion
compensation code and resulting in visual artifacts.

CC: libav-stable@libav.org
Signed-off-by: Tim Walker <tdskywalker@gmail.com>
2026-04-20 15:17:58 +08:00
openvela-robot a52617e549 Move add/diff_int16 to lossless_videodsp
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:17:55 +08:00
openvela-robot 2f8384c8b6 mov: do not set avg_frame_rate in the demuxer
The track duration is often not reliable or is not the duration
represented by the number of frames. In those cases, avg_frame_rate
was reported incorrectly. Removing this code falls back to the
default calculation in avformat_find_stream_info().

This is a partial revert of commit c3aeaa540.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 15:17:53 +08:00
openvela-robot 9d2137cfc9 examples: add remuxing example
Show how to perform streamcopy from one container to another.
2026-04-20 15:17:45 +08:00
openvela-robot b412cc21d3 lavc: allow the caller to override dimensions in ff_get_buffer()
This will be useful for allocating edges in the encoders.
2026-04-20 15:17:43 +08:00
openvela-robot e074094f4d Merge commit '210881110d3e22cca36edeaca118b5e22c998266'
* commit '210881110d3e22cca36edeaca118b5e22c998266':
  Prepare for 10_alpha2 Release

Conflicts:
	RELEASE

Not merged

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:17:12 +08:00
openvela-robot 063f612d8a h264: limit allowed pred modes in ff_h264_check_intra_pred_mode() to 3
Higher modes are not allowed for 16x16/chroma, which is what this
function is used for. Otherwise this function would return 0 (vertical
prediction) for invalid higher modes, which could result in invalid
reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2026-04-20 15:17:09 +08:00
openvela-robot 2501f49e99 swresample: Add arm&x86 clobber tests
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:17:06 +08:00
openvela-robot 208dc8fa76 Prepare for 10_alpha2 Release 2026-04-20 15:17:04 +08:00
openvela-robot 95bf14302b vp9/x86: add ff_vp9_loop_filter_[vh]_16_16_sse2().
Similar gains in performance as the SSSE3 version

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 15:16:49 +08:00
openvela-robot 1b4f60acc3 doxy: Add AVFrame to the structured modules 2026-04-20 15:16:46 +08:00
openvela-robot d8d8666120 Merge commit '36e3b1f2fd262028834a9d7b1eb533c1218ee6c2'
* commit '36e3b1f2fd262028834a9d7b1eb533c1218ee6c2':
  aarch64: h264 loop filter NEON optimizations

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:16:38 +08:00
openvela-robot 1b25494c69 build: Add separate hidden config option for the intrax8 code
This allows for slightly cleaner dependency specification.
2026-04-20 15:16:35 +08:00
openvela-robot 534899a498 vp9/x86: add AVX for itxfm and lpf.
4412 decicycles in ff_vp9_loop_filter_h_16_16_ssse3, 4193462 runs, 842 skips
3600 decicycles in ff_vp9_loop_filter_h_16_16_avx, 4193621 runs, 683 skips

3010 decicycles in ff_vp9_loop_filter_v_16_16_ssse3, 4193528 runs, 776 skips
2678 decicycles in ff_vp9_loop_filter_v_16_16_avx, 4193742 runs, 562 skips

23025 decicycles in ff_vp9_idct_idct_32x32_add_ssse3, 2096871 runs, 281 skips
19943 decicycles in ff_vp9_idct_idct_32x32_add_avx, 2096815 runs, 337 skips

4675 decicycles in ff_vp9_idct_idct_16x16_add_ssse3, 4194018 runs, 286 skips
3980 decicycles in ff_vp9_idct_idct_16x16_add_avx, 4194022 runs, 282 skips

967 decicycles in ff_vp9_idct_idct_8x8_add_ssse3, 16776972 runs, 244 skips
887 decicycles in ff_vp9_idct_idct_8x8_add_avx, 16777002 runs, 214 skips
2026-04-20 15:16:25 +08:00
openvela-robot baf1af8f3b mov: Free intermediate arrays in the normal cleanup function
These arrays are normally freed at the end of mov_read_trak,
but make sure they're freed in case mov_read_trak returned
early (due to errors) or in case the atoms that allocate arrays
are encountered at some other point than within a trak (which
we don't have checks against).

Sample-Id: 00000496-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:16:22 +08:00
openvela-robot 80ef102aee Merge commit 'd84bd4650b1bed882e2ac1651b4a86206aa0e363'
* commit 'd84bd4650b1bed882e2ac1651b4a86206aa0e363':
  mxf: Set AV_FIELD_PROGRESSIVE

See: def01739c1
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:16:09 +08:00
openvela-robot f22c68f32a mxf: Set AV_FIELD_PROGRESSIVE
Needed for AVC-intra

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:16:06 +08:00
openvela-robot cd684a767c avformat/utils: av_probe_input_buffer2 decrease difference to libav
This removes the initialization of 2 unused fields
The change was part of c1868e7ee7
but wasnt merged as the fields could still be used

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:46 +08:00
openvela-robot 32020fb5ef vf_yadif: Relicense from GPL to LGPL
All copyright holders have agreed to the relicensing.
2026-04-20 15:15:44 +08:00
openvela-robot fc5a092537 Merge commit 'c1868e7ee7b07b40a0fe15f50df89fe499a01a50'
* commit 'c1868e7ee7b07b40a0fe15f50df89fe499a01a50':
  lavf: simplify handling of offset in av_probe_input_buuffer()

Conflicts:
	libavformat/utils.c

The simplification is broken and does not work at least for ffmpeg,
thus this change is not merged.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:39 +08:00
openvela-robot 2f889a8b7f lavf: simplify handling of offset in av_probe_input_buuffer() 2026-04-20 15:15:37 +08:00
openvela-robot 0fe65ae344 Merge commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e'
* commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e':
  vc1: Factorize out chroma MC

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:31 +08:00
openvela-robot d580d7e9d7 vc1: Add avg_no_rnd_vc1_chroma_mc4_c()
Needed for proper interlaced support.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:15:28 +08:00
openvela-robot a37dcae688 swscale: disable ARM code until its build failure with clang/iphone is fixed
See: "19:40 Yu Xiaolei Re: [FFmpeg-devel] [PATCH] fix build with gas-preprocessor.pl"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:24 +08:00
openvela-robot 79eada30b9 vc1dsp: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 15:15:22 +08:00
openvela-robot 9f9608ca3f Merge remote-tracking branch 'qatar/master'
* qatar/master:
  flv: Workaround for buggy Omnia A/XE encoder

Conflicts:
	libavformat/flvdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:18 +08:00
openvela-robot 2135d6dba7 flv: Workaround for buggy Omnia A/XE encoder
The Omnia A/XE encoder writes the explicit extra data incorrectly
and wrongly disables parametric stereo. Truncating the extra data
by setting the size to 2 works around this. The AAC extra data
parser will then only parse the correct parts.

Bug-id: 599
2026-04-20 15:15:16 +08:00
openvela-robot 5f8815a916 avformat/matroskadec: check generic audio deinterleaver sub_packet_size against frame_size
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f67d052a530_7517_nosound.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:11 +08:00
openvela-robot 9a0d15760c arm: Add an option for making sure NEON registers aren't clobbered
This is pretty much based on the same test for XMM registers.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:15:09 +08:00
openvela-robot 31ef18fcdf avcodec/mss2: fix chroma dimensions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:15:05 +08:00
openvela-robot dfb7d7b69c fate: Explicitly specify the rgb555le pixel format for the mss2 rgb555 tests
This fixes these fate tests on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:15:03 +08:00
openvela-robot f916f25a04 avformat/nutdec: fix packet end clearing
The code was buggy, using the wrong variable, also it missed the case
where the packet become smaller due to sidedata/metadata being extracted
which left a few bytes uninitialized

Fixes use of uninitialized memory
Fixed: msan_uninit-mem_7f6abbe44530_6838_mewmew_vorbis_ssa.nut
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:14:53 +08:00
openvela-robot e19c6c792d flac muxer: add option to disable writing the global header
The global header is not explicitly required for playback, and
omitting it allows for simple concatenation.
2026-04-20 15:14:50 +08:00
openvela-robot c34a9a60cb Merge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'
* commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a':
  ac3tab.h: #include the correct headers

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:14:44 +08:00
openvela-robot a9ecf77ab5 ATRAC3+ decoder
Cleanup by Diego Biurrun.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
2026-04-20 15:14:42 +08:00
openvela-robot 917b8c0d64 examples/muxing: set sample formats from list of codec supported sample formats
Avoid the need of tweaking, also show how to get list of supported sample
formats.
2026-04-20 15:14:20 +08:00
openvela-robot fd02d89278 mpegvideo: drop support for real (non-emulated) edges
Several decoders disable those anyway and they are not measurably faster
on x86. They might be somewhat faster on other platforms due to missing
emu edge SIMD, but the gain is not large enough (and those decoders
relevant enough) to justify the added complexity.
2026-04-20 15:14:18 +08:00
openvela-robot c02f2fefd3 doc/filters/equalizer: add examples for equalizer
Add two examples on the usage of the equalizer filter.
2026-04-20 15:14:08 +08:00
openvela-robot 0e103401b1 arm: cosmetics: Reindent the h264dsp neon init function
Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:14:06 +08:00
openvela-robot 05a10b7b49 avcodec/huffyuv: add GBRP support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:13:58 +08:00
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
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
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
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
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
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
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
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
openvela-robot 5121222b42 Revert "Merge commit '3bc2e89c76e88ae6f1fd5287e0b11abcfc3c601c'" (Bump libavutil major version to account for the LLS API/ABI changes.)
This reverts commit 792845e436, reversing
changes made to 1d6666a6b8.

Bumping libavutil requires all libraries that use libavutil to have their
major version bumped (yes breakage has been confirmed this is not a hypotheses)

One case of breakage is due to new types being added to AVOptions and
applications that linked to old libavutil and libswresample
then trying to use old libavutil (its soname changed so the old isnt updated)
and new swresample (its soame didnt change so it is updated)
the new swresample contains AVOption types that the old libavutil doesnt
know of thus the application attempting to access these avoptions
fails

AVOptions are used by all libs so the issue can potentially happen with
any other lib, libswresample was just the first that showed the problem
ive not checked if the other libs are affected currently by the same issue
or not

Also in addition to AVOptions, AVFrames are also defined in
libavutil, bumping it without all libs that use AVFrames could lead to
serious inconsistencies when 2 libs/app end up using 2 different libavutils

The alternative of bumping all is still possible after this revert, if it
turns out to be the preferred solution
2026-04-20 15:09:43 +08:00
openvela-robot b2675dccfa vc1: Fix mb_height for field pictures
Tables are always allocated now with sufficient space for either progressive
or interlaced content. The alternative would be to detect a change
and reallocate.

This fixes decoding of a sample.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:09:41 +08:00
openvela-robot 2916d41d2e avcodec: use av_frame_unref() to set frame defaults
This ensures that the code isnt duplicated and cant become out of sync

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:09:31 +08:00
openvela-robot 495b68d474 png: add a standalone parser
Useful for reading png images from a pipe.
2026-04-20 15:09:19 +08:00
openvela-robot 88df374d33 lavfi/buffersrc: set min and max values for pix_fmt option
Currently the min and max values are not honored, but this will change in
a following patch.
2026-04-20 15:09:08 +08:00
openvela-robot 3ede3cefb6 avutil: Remove deprecated intfloat_readwrite code
It was deprecated over two years ago.
2026-04-20 15:09:05 +08:00
openvela-robot cb80381367 Merge commit '6451c8853a07ff2e28bda950fb5e83fcf88c5cf4'
* commit '6451c8853a07ff2e28bda950fb5e83fcf88c5cf4':
  sdp: Check theora colorspace before producing the configuration string

See: db8a53d86a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:08:58 +08:00
openvela-robot 5645af44ae Bump libavutil major version to account for the LLS API/ABI changes.
Commit 41578f70cf changed the LLS API, which was
called from libavcodec. Thus using an old libavcodec with a new libavutil will
break.

All scheduled API changes are deferred to the next bump.
2026-04-20 15:08:55 +08:00
openvela-robot b1b8219e26 avcodec/vc1: fix mb_height for field pictures
Fixes ticket2531

Tables are always allocated now with sufficient space for either progressive
or interlaced content. The alternative would be to detect a change
and reallocate.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:08:50 +08:00
openvela-robot 3866fb0bda hdsenc: Avoid integer overflow
Also remove a silly leftover pair of parentheses.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:08:47 +08:00
openvela-robot e6076de47b swscale/x86/rgb2rgb_template: try to fix build without AVX
Found-by: iive
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:08:39 +08:00
openvela-robot 675cb64ab3 configure: Move the bz2 and zlib checks below phtreads
There are alternate implementations of those libraries that use pthreads.
2026-04-20 15:08:36 +08:00
openvela-robot 4c6cb4dc8b avformat/ipmovie: Fix use of uninitialized memory in OPCODE_INIT_VIDEO_BUFFERS
Fixes: msan_uninit-mem_7ffe323a25f3_5929_ipmovie_interplayvideo_interplay_dpcm__bislogo.mve
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:08:28 +08:00
openvela-robot 42080b47df build: Merge pthreads/w32threads OBJS declarations 2026-04-20 15:08:26 +08:00
openvela-robot 035e8fca1c avformat/oggparseopus: Check opus_duration() return value
Regression since 39d11d599c

os->pduration would be wrongly assigned a negative value on invalid packets
instead of aborting.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:08:03 +08:00
openvela-robot 8cc04f432f parseutils: fix discarding const attribute warning 2026-04-20 15:08:01 +08:00
openvela-robot 0b2729af80 avutil/avstring: fix () position
Fixes CID1135751

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:07:41 +08:00
openvela-robot 5036377bb3 configure: Add -D__USE_MINGW_ANSI_STDIO=1 to CPPFLAGS on MinGW64
This enables a more POSIX-compliant printf implementation, that
allows using length modifiers like 'z'.
2026-04-20 15:07:23 +08:00
openvela-robot 6c3d0cc76e Merge commit '37a749012aaacc801fe860428417a6d7b81c103f'
* commit '37a749012aaacc801fe860428417a6d7b81c103f':
  lavc: rework handling of refcounted_frames=0

Conflicts:
	libavcodec/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:07:02 +08:00
openvela-robot eee37a447a configure: Move toolchain dependency declarations to a more appropriate place 2026-04-20 15:07:00 +08:00
openvela-robot 3910cb8a16 Merge commit 'd4f0f2d1e80b76260eb6b9cdde472ac069dfda56'
* commit 'd4f0f2d1e80b76260eb6b9cdde472ac069dfda56':
  lavc: use buf[0] instead of data[0] as the indicator of an allocated frame

Conflicts:
	libavcodec/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:06:53 +08:00
openvela-robot 6f71d63adf avframe: add codec-independent stereoscopic metadata 2026-04-20 15:06:37 +08:00
openvela-robot e9a6dad93d Merge commit 'f0b234ab9e406efee85c17eb435db646092a943b'
* commit 'f0b234ab9e406efee85c17eb435db646092a943b':
  avformat: AviSynth demuxer rewrite

Conflicts:
	configure
	libavformat/avisynth.c

See: b9ad009475 (as well as later commits)
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:06:29 +08:00
openvela-robot f342797fdd mjpegdec: use the AVFrame API properly. 2026-04-20 15:06:25 +08:00
openvela-robot 0ca766a7da avcodec/ffv1: support adjusting the g vs r + b coefficient in the RCT
about 1% better compression

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:06:20 +08:00
openvela-robot 6b67416079 avformat: AviSynth demuxer rewrite
Directly loads AviSynth through LoadLibrary instead of relying on
Video for Windows, and supports using AvxSynth (via dlopen) to
open scripts on Linux and OS X.

Error messages from AviSynth/AvxSynth are now reported through
av_log and exit, rather than the traditional behavior of generating
an error video that the user would need to watch to diagnose.

The main rewrite was authored by d s <avxsynth.testing@gmail.com>
from the AvxSynth team, with additional contributions by

Oka Motofumi <chikuzen.mo@gmail.com>
Stephen Hutchinson <qyot27@gmail.com>
Diego Biurrun <diego@biurrun.de>
Anton Khirnov <anton@khirnov.net>

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:06:17 +08:00
openvela-robot d6c74ec511 configure: Special case libfreetype test
Include the freetype header, in-directly through a macro, like it
is done in the drawtext filter. Do not break if the header is moved.

Unfortunately the drawtext filter included the file where the include
macros are defined in a wrong way. This is not needed and breaks the
build. Remove that #include line too.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
2026-04-20 15:06:13 +08:00
openvela-robot 6b6ed27b1b dsputil: Move apply_window_int16 to ac3dsp
The (optimized) functions are used nowhere else.
2026-04-20 15:06:10 +08:00
openvela-robot 62fa7f0642 Merge remote-tracking branch 'qatar/master'
* qatar/master:
  libvpx: do not mark VP9 as experimental when using libvpx >= 1.3.0

Conflicts:
	libavcodec/libvpxdec.c
	libavcodec/libvpxenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:06:07 +08:00
openvela-robot 40a86198a6 libvpx: do not mark VP9 as experimental when using libvpx >= 1.3.0
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 15:06:04 +08:00
openvela-robot a2a2cdb850 avutil/utils: run ff_check_pixfmt_descriptors() only when ASSERT_LEVEL is > 0
this safes about 0.1ms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:05:43 +08:00
openvela-robot c7d3c6b82a dcadec: Decode LFE to avoid adding random data when downmixing with LFE
Signed-off-by: Tim Walker <tdskywalker@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:05:40 +08:00
openvela-robot 0cafafa4e8 avformat/utils: provide more IO statistics in debug output at start and end of av_find_streaminfo()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:04:46 +08:00
openvela-robot b9dfef2fb2 mpeg4videodec: move use_intra_dc_vlc from MpegEncContext to Mpeg4DecContext 2026-04-20 15:04:40 +08:00
openvela-robot a1a67cc991 swresample: use the internal buffer for resampling the last few samples
Fixes out of array read
Fixes Ticket3193

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:04:32 +08:00
openvela-robot 688ffdd11f configure: Detect msvcrt libc with a CPP check instead of a link check
Simplifies host/target libc detection splitting.
2026-04-20 15:04:25 +08:00
openvela-robot 0bdaf81e3c Merge remote-tracking branch 'qatar/master'
* qatar/master:
  alsa-audio-dec: explicitly cast the delay to a signed int64

Conflicts:
	libavdevice/alsa-audio-dec.c

no change as the buggy code has been replaced in ffmpeg

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:04:09 +08:00
openvela-robot 9b39f101a5 alsa-audio-dec: explicitly cast the delay to a signed int64
Otherwise the expression will be evaluated as unsigned, which will break
when the result should be negative.
CC:libav-stable@libav.org
2026-04-20 15:04:05 +08:00
openvela-robot 57eb082ae9 doc/examples/filtering: make use of av_err2str()
Simplify.
2026-04-20 15:03:54 +08:00
openvela-robot b543d4dcd0 build: Add shorthand for HOSTCC compile macro 2026-04-20 15:03:50 +08:00
openvela-robot 7daf09bc36 doc/ffserver: fix misc minor typos 2026-04-20 15:03:39 +08:00
openvela-robot f872aa2671 doc: Try to find nonstandard Perl path from the environment 2026-04-20 15:03:26 +08:00
openvela-robot ac7ee03e8b lavfi/Makefile: Don't compile lavfutils.c and lswsutils.c if they are not needed
They are only needed by removelogo.
This fixes a link failure in shared builds when compiling with
removelogo disabled but Lavf/SwS enabled

Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:03:12 +08:00
openvela-robot 428286292d dcadec: Add some logging before returning on error
Based on a patch by Michael Niedermayer.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:03:09 +08:00
openvela-robot a748f0d952 Merge commit '95fd52c11bff1aad93a29aed3bd5472bd2981d1f'
* commit '95fd52c11bff1aad93a29aed3bd5472bd2981d1f':
  mxfdec: set extradata size

Conflicts:
	libavformat/mxfdec.c

no change as ffmpeg was not affected by this bug

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:02:19 +08:00
openvela-robot 1140b6017b mpeg4videodec: move new_pred from MpegEncContext to Mpeg4DecContext 2026-04-20 15:02:15 +08:00
openvela-robot c39bfcb620 RELEASE: update to 2.1.git
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:02:12 +08:00
openvela-robot 2c0b61da3d mxfdec: set extradata size
The line setting it was mistakenly removed in
ecf442a58b
2026-04-20 15:02:08 +08:00
openvela-robot bcfe0cd8bb Merge commit 'd1916d13e28b87f4b1b214231149e12e1d536b4b'
* commit 'd1916d13e28b87f4b1b214231149e12e1d536b4b':
  dsputil/pngdsp: fix signed/unsigned type in end comparison

Conflicts:
	libavcodec/dsputil.c

See: 454a11a1c9
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:01:39 +08:00
openvela-robot b430bc722f dca: remove embedded downmix coefficient extraction.
It was based on an old, seemingly incorrect specification, so default
coefficients were always used anyway.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:01:35 +08:00
openvela-robot 21830386d9 library.mak: only run asm strip if ASMSTRIP flags are set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:01:31 +08:00
openvela-robot 7d941eacfd dca: convert dca_default_coeffs to float.
Easier to read, modify, and avoids relying on an outdated table.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:01:28 +08:00
openvela-robot 6e436a4dc4 Merge commit '0673ede985a6560e7efb86dab1c58fb7f95ce587'
* commit '0673ede985a6560e7efb86dab1c58fb7f95ce587':
  configure: add strip flags checks

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:01:19 +08:00
openvela-robot 778784ada9 dcadec: implement request_channel_layout.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:01:08 +08:00
openvela-robot f135f0005f doc/ffserver: remove more pointless/outdated entries
Mentioning build options, or bugs, or mysterious limitations should not
be done in the manual.
2026-04-20 15:00:55 +08:00
openvela-robot 8f66072a8c dsputil/pngdsp: fix signed/unsigned type in end comparison
Fixes out of array accesses and integer overflows.
2026-04-20 15:00:45 +08:00
openvela-robot f9855b83ac configure: add #include "version.h" to config.h
Avoid clash with version.h of the libraries.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:00:37 +08:00
openvela-robot c6a20a5461 h264_refs: make sure not to write over the bounds of the default ref list
Fixes invalid writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2026-04-20 15:00:34 +08:00
openvela-robot bc4e89a0bb doc/platform: Update to reflect current MSVC build situation
Also update the C99 converter URL, since it uses GitHub Releases
to host the binaries now.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 15:00:29 +08:00
openvela-robot 3b132bd0b4 doc/platform: Update to reflect current MSVC build situation
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 15:00:26 +08:00
openvela-robot 5f68d315c2 lavd/pulse_audio_enc: add buffer size control options
Add options to control the size of the PulseAudio buffer.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2026-04-20 15:00:07 +08:00
openvela-robot fc575fac63 Add an audio transcoding example.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:00:04 +08:00
openvela-robot 9a3375de29 avcodec/g2meet: fix stride calculation, use correct format field
Fixes out of array accesses
Fixes: asan_heap-oob_ae5f63_5415_g2m4.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:59:57 +08:00
openvela-robot 582f7770a1 Makefile: Fix building programs on systems with a nonempty executable suffix
This fixes leftover issues from 14abeaa4 which caused make
rules for programs to not match up properly when the executable
suffix was nonempty.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 14:59:54 +08:00
openvela-robot 4fc024346a configure: define CONFIG_THIS_YEAR at the configure level
The macro value can be shared between configure script and cmdutils.c.
2026-04-20 14:59:45 +08:00
openvela-robot 422915cf7d metasound: add last missing modes (8kHz @ 6kbps per channel)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 14:59:40 +08:00
openvela-robot afa6595e81 Merge commit '14abeaa43d021afdce9119d906891abe89c03b88'
* commit '14abeaa43d021afdce9119d906891abe89c03b88':
  build: Separate building programs linking against libav* from building av*

Conflicts:
	Makefile
	doc/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:59:24 +08:00
openvela-robot 9d52bb70a6 build: Separate building programs linking against libav* from building av*
This will allow cleaner integration of building example programs.
2026-04-20 14:59:19 +08:00
openvela-robot 5782ce596d Merge remote-tracking branch 'qatar/master'
* qatar/master:
  doc: Add the host executable suffix for the print_options dependency

See: d48f014ff1
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:59:13 +08:00
openvela-robot 9f38d18b58 doc: Add the host executable suffix for the print_options dependency
This fixes building on windows.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 14:59:09 +08:00
openvela-robot c72bf8ab30 avcodec/vp9dsp: remove unused stride parameter in loop_filter().
The stride argument is passed either as stridea or strideb.
2026-04-20 14:58:40 +08:00
openvela-robot 1378f16e6e ac3dec: Fix out-of-array read
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 14:58:23 +08:00
openvela-robot 80205ef60f avcodec/hnm4video: allocate frame only when theres a coded frame
Fixes memleak
Fixes: asan_heap-oob_e76bdf_2224_MOTHOO.HNM

This patch also removes the setting of palette_has_changed,
which was set on a frame that was never returned

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:58:18 +08:00
openvela-robot df4f59c719 build: more fine-grained dependencies for documentation build tools
Perl is needed to build the manual pages, texi2html for the HTML pages.
2026-04-20 14:58:14 +08:00
openvela-robot 207fb4c425 Merge commit 'c16bfb147df8a9d350e8a0dbc01937b78faf5949'
* commit 'c16bfb147df8a9d350e8a0dbc01937b78faf5949':
  swscale: x86: Consistently use lowercase function name suffixes

Conflicts:
	libswscale/x86/rgb2rgb.c
	libswscale/x86/swscale.c

See: 1de064e21e
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:58:01 +08:00
openvela-robot e48c4c84bb avconv: add infrastructure for using hwaccels 2026-04-20 14:57:56 +08:00
openvela-robot c6f02f8463 avcodec/vp9dsp: pass dconly bit as macro argument. 2026-04-20 14:57:48 +08:00
openvela-robot 967f0a9017 swscale: x86: Consistently use lowercase function name suffixes 2026-04-20 14:57:43 +08:00
openvela-robot 3ab5733938 doc/encoders/libfdk_aac: use @ref to reference libfaac 2026-04-20 14:57:10 +08:00
openvela-robot d4b23cd2cb http: Support relative URL redirection
In RFC 2616, this was explicitly said to be an absolute URL,
while in an upcoming draft [1] it is allowed to be relative as well.

[1] http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-25#section-7.1.2

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 14:56:58 +08:00
openvela-robot 07a41fda9e hevc : fix pcm(cherry picked from commit 12bbfdba1899d11044d2bd8457159fc8b4b52a76)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:56:21 +08:00
openvela-robot 7c6e4949a8 gifdec: check that the image dimensions are non-zero
Also add an error message an return a more suitable error code
(INVALIDDATA, not EINVAL);
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2026-04-20 14:56:06 +08:00
openvela-robot 7ef6fc3652 cmdutils&ffmpeg: use av_fopen_utf8() for passlogfile
might fix Ticket3056

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:55:53 +08:00
openvela-robot ae99fbb32b avconv_filter: add new line after error message 2026-04-20 14:55:49 +08:00
openvela-robot 2bc4a22859 avcodec/utils: remove unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:55:43 +08:00
openvela-robot 90b212a3df mpeg4videoenc: restore macro parentheses
These were erroneously removed in 8769113acc.
2026-04-20 14:55:25 +08:00
openvela-robot 39a344483a Merge commit 'a7b87ca9111bafb220ab94d53ab4e4ed48111800'
* commit 'a7b87ca9111bafb220ab94d53ab4e4ed48111800':
  libxavs: rename and fix a variable name

Conflicts:
	libavcodec/libxavs.c

See: 260fc0d95b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:55:07 +08:00
openvela-robot a1991b65af configure: Avoid requiring c99wrap for working around msys path issues
Msys is unable to convert unix style absolute paths to windows style
paths when combined with certain multichar MSVC options such as
-Fo<file>. We used to work around this issue by passing them as two
separate parameters separated by a space to c99wrap, which then mapped
them back to the actual parameter format that MSVC uses.

The only paths that actually are an issue are absolute unix style
paths, and the only place such absolute paths are used with the output
arguments (-Fo, -Fe, -Fi, -out:) are for the temp files within configure.

By setting TMPDIR to . for msvc/icl builds, we never need to use
absolute unix style paths for the file output, and we can use the
actual proper form of the file output parameters. This avoids requiring
the c99wrap wrapper for remapping the parameters for cases where the
c99 converter isn't invoked at all (MSVC2013 and ICL).

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 14:55:02 +08:00
openvela-robot dc31db5ce7 avformat/utils: move side data merge after parser
merging before the parser can conflict with the parser, also
future changes depend on it being done later

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:54:56 +08:00
openvela-robot 6791eabc4d libxavs: rename and fix a variable name
It was mis-spelled in b18c7c8d3d.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 14:54:51 +08:00
openvela-robot 4d183fb7fb Merge commit '8769113accf1f3b78634dec60b37f7354ed6d88d'
* commit '8769113accf1f3b78634dec60b37f7354ed6d88d':
  mpeg4videoenc: K&R formatting cosmetics

Conflicts:
	libavcodec/mpeg4videoenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:54:07 +08:00
openvela-robot 53960db42f mpeg4videoenc: K&R formatting cosmetics 2026-04-20 14:53:56 +08:00
openvela-robot 530a470ebc Merge commit 'a553c6a347d3d28d7ee44c3df3d5c4ee780dba23'
* commit 'a553c6a347d3d28d7ee44c3df3d5c4ee780dba23':
  lavc: use buf[0] instead of data[0] in checks whether a frame is allocated

Conflicts:
	libavcodec/h264_refs.c
	libavcodec/mpegvideo.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:53:27 +08:00
openvela-robot bdaceca1c0 mpegvideo: Fix swapping of UV planes for VCR2 2026-04-20 14:53:14 +08:00
openvela-robot 66ea1df159 avcodec/pcm-dvd: fix incorrectly printed warning about changed block sizes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:52:59 +08:00
openvela-robot 36212694ca lavc: use buf[0] instead of data[0] in checks whether a frame is allocated
data[0] may be NULL for valid frames with hwaccel pixel formats.
2026-04-20 14:52:53 +08:00
openvela-robot 1228b17df3 Merge remote-tracking branch 'qatar/master'
* qatar/master:
  rtmphttp: Check for both 0 and AVERROR_EOF

Conflicts:
	libavformat/rtmphttp.c

See: d04b7de786
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:52:46 +08:00
openvela-robot 0dd9cb19d9 rtmphttp: Check for both 0 and AVERROR_EOF
This makes RTMPT work again - it was broken by 5d876be87a.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 14:52:41 +08:00
openvela-robot dab8f13f19 vp9: Ensure that the arithmetic coder values are read in the right order
The operands of an addition can be evaluated in any order, since
the addition isn't a sequence point. The only operators that
have a defined evaluation order are &&, ||, ?: and the sequence
operator ','.

This fixes fate-vp9 on ARM RVCT.
2026-04-20 14:51:10 +08:00
openvela-robot 03e3923259 smc: use the AVFrame API properly. 2026-04-20 14:50:41 +08:00
openvela-robot 1fe46383d9 ffmpeg: Do not fill gap before the first decodable frame on single stream input files unless the user explicitly requests it.
Fixes different behavior to JM and probably several if not all
reference decoders.

We cannot just do this unconditionally as it would ruin AV sync in
some use cases.

Bug-Found-by: BugMaster
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 14:50:34 +08:00
openvela-robot 020863c9c6 lavc: deprecate CODEC_CAP_NEG_LINESIZES
It was never used in any codec since it was added 3 years ago.
2026-04-20 14:50:20 +08:00
Stefano Sabatini c92b6f347d tools: add plotframes script
The script is ported from ffprobe/SourceForge and updated to the current
ffprobe version.
2013-01-15 22:50:19 +01:00