Commit Graph

3323 Commits

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