Commit Graph

3323 Commits

Author SHA1 Message Date
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