Commit Graph

2354 Commits

Author SHA1 Message Date
openvela-robot db600b2cf7 vf_format: rework format list parsing
Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel
formats into lavfi and will break when a shared lavu is updated, adding
new pixel formats.
2026-04-20 15:54:29 +08:00
openvela-robot cb5ffdb3d5 avcodec/webvttenc: do not use EOVERFLOW.
According to doc/errno.txt EOVERFLOW is not available everywhere. The
use of -1 is consistent with avcodec/srtenc.c.
2026-04-20 15:54:23 +08:00
openvela-robot c91f6dae48 imgutils: make systematic palette opaque.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:54:21 +08:00
openvela-robot 61f38a5315 Merge commit '6b7b8585d73548f08b98959df39d80b97677662f'
* commit '6b7b8585d73548f08b98959df39d80b97677662f':
  dca: Convert dca_dmixtable to integers

Conflicts:
	libavcodec/dcadec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:54:13 +08:00
openvela-robot cb3e54d5ce avcodec: bump version after rotation api
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
2026-04-20 15:54:11 +08:00
openvela-robot e20a94ec05 avcodec: remove no longer needed ff_codec_close_recursive()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:54:02 +08:00
openvela-robot b4a0ada59e check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA) 2026-04-20 15:54:00 +08:00
openvela-robot ba94b680bf Merge commit 'ed7922faac4ea4c893efc3cdf8102ebc49fcc011'
* commit 'ed7922faac4ea4c893efc3cdf8102ebc49fcc011':
  mux: drop one of the hacks comprising compute_pkt_fields2()

Conflicts:
	libavformat/mux.c

Not merged as -async drop / -vsync drop depends on this code

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:53:49 +08:00
openvela-robot ca50a9d6d7 display: Include mathematics.h for fallback definition of NAN
This fixes compilation with MSVC.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:53:47 +08:00
openvela-robot 38726e89b6 Merge commit '04db5794cd97e4b33ec2f963ef7f967722a456eb'
* commit '04db5794cd97e4b33ec2f963ef7f967722a456eb':
  hevc: templatize pred_planar

Conflicts:
	libavcodec/hevcpred_template.c

See: 053fdacde7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:53:39 +08:00
openvela-robot 1af0f28047 hevc: templatize pred_planar
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:53:33 +08:00
openvela-robot fa6d0d705d Merge commit '33082af7560a18179b52734665ef66f812902d33'
* commit '33082af7560a18179b52734665ef66f812902d33':
  doc/APIchanges: fill in missing hashes and dates

Conflicts:
	doc/APIchanges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:53:16 +08:00
openvela-robot 46f8d1ac7a wavenc: use codec descriptors to get the codec name
Also, return a proper error code.
2026-04-20 15:53:14 +08:00
openvela-robot 7922997d82 Merge commit 'e1b66778b6ee82a192b5895e23c4e135f7269326'
* commit 'e1b66778b6ee82a192b5895e23c4e135f7269326':
  lavc: remove the locking code in avcodec_close()

Conflicts:
	libavcodec/utils.c

Note, if someone knows of a external codec lib/API, hwaccel or other that requires
locking on its close/free side, please contact ffmpeg-devel.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:53:00 +08:00
openvela-robot d21777d8dc lavc: remove the locking code in avcodec_close()
This function should not modify any global state, so there should be no
reason for any locking.
2026-04-20 15:52:57 +08:00
openvela-robot 7c42b0862a avcodec/x86/hevc: added DBF assembly functions
Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:52:46 +08:00
openvela-robot 8756ea52d1 avisynth: set duration of audio streams
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:52:43 +08:00
openvela-robot 1e32b5c312 Merge commit 'b70d7a4ac72d23f3448f3b08b770fdf5f57de222'
* commit 'b70d7a4ac72d23f3448f3b08b770fdf5f57de222':
  lavc: add a native Opus decoder.

Conflicts:
	Changelog
	configure
	libavcodec/version.h

Fate tests pass with both avresample as well as swresample based opus decoder, but
are disabled (reference files are very large so i want to think a day or 2 about
if theres an alternative or if they could be avoided, they also dont match the
official samples)

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:52:32 +08:00
openvela-robot bd49d90df0 lavc: add a native Opus decoder.
Initial implementation by Andrew D'Addesio <modchipv12@gmail.com> during
GSoC 2012.

Completion by Anton Khirnov <anton@khirnov.net>, sponsored by the
Mozilla Corporation.

Further contributions by:
Christophe Gisquet <christophe.gisquet@gmail.com>
Janne Grunau <janne-libav@jannau.net>
Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:52:29 +08:00
openvela-robot f49ed8bd69 Merge commit 'a738540366c9b114949b7914c0d08e2c28982cfb'
* commit 'a738540366c9b114949b7914c0d08e2c28982cfb':
  lavf: properly document the distinction between flags and ctx_flags

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:52:25 +08:00
openvela-robot 68abbda1d7 build: do not append $(FFLIBS-) to $(FFLIBS) if $(NAME) is not defined
Avoids including disabled library Makefiles.
2026-04-20 15:52:23 +08:00
openvela-robot f8ddfa5002 Merge commit '9aa4592076d4dbb29d1198b0e258f9f85c0c00b5'
* commit '9aa4592076d4dbb29d1198b0e258f9f85c0c00b5':
  aarch64: assembler in clang-3.4 ignores the division by two

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:52:17 +08:00
openvela-robot 4df930445f build: handle library dependencies in configure
Instead of setting FFLIBS in each library Makefile configure
exports FFLIBS-$library in config.mak.
2026-04-20 15:52:05 +08:00
openvela-robot dfecdb533b avcodec/cinepakenc: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:51:51 +08:00
openvela-robot 9a0eb92579 lavc: Add an internal wrapper around get_format()
It will be useful in the following commits.
2026-04-20 15:51:48 +08:00
openvela-robot 2e8a19b8d0 Merge commit '9880a0d4b131ef36694d62f78060350a81f08b80'
* commit '9880a0d4b131ef36694d62f78060350a81f08b80':
  pcm-dvd: Fix 20bit decoding

See: 5db49fc38d
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:51:44 +08:00
openvela-robot d48b773c3a pcm-dvd: Fix 20bit decoding
Increment the pointer as needed.

Bug-Id: 592

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:51:42 +08:00
openvela-robot 1ff39df21f Merge commit '73ed8558a61c4f1d0ce8d1f35183ac1a0a4e31e3'
* commit '73ed8558a61c4f1d0ce8d1f35183ac1a0a4e31e3':
  avconv: simplify exit_program() by using more local vars

Conflicts:
	ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:51:25 +08:00
openvela-robot ea61417aaf libfdk-aacenc: Enable 7.1 channel encoding
7.1(wide) and 7.1(wide-side) channel layouts are supported in
fdk-aac since the 0.1.3 release.

The earlier versions of fdk-aac didn't include any library
version defines in the public headers, thus checking for
the AACENCODER_LIB_VL0 define is enough to know that we're
building against a new enough version of fdk-aac.

This change includes contributions by Tim Walker,
Michael Niedermayer and Timothy Gu.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 15:51:23 +08:00
openvela-robot 6371c69840 avcodec/xbmdec: fix pointer type warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:51:10 +08:00
openvela-robot 7346828ef3 avconv: simplify exit_program() by using more local vars 2026-04-20 15:51:07 +08:00
openvela-robot 847a7deea5 avfilter/edgedetect: add a colormix mode. 2026-04-20 15:51:05 +08:00
openvela-robot 22da2da74d vp9: Read the frame size as unsigned
Sample-Id: 00001723-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
2026-04-20 15:51:02 +08:00
openvela-robot 120a5b9900 Merge commit '1c0210c7981b6a61043d9171f506b435ff5a1f5e'
* commit '1c0210c7981b6a61043d9171f506b435ff5a1f5e':
  lavfi: add Bauer stereo-to-binaural audio filter

Conflicts:
	Changelog
	configure
	doc/filters.texi
	libavfilter/Makefile
	libavfilter/allfilters.c
	libavfilter/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:50:32 +08:00
openvela-robot 306631022c flv: K&R formatting cosmetics 2026-04-20 15:50:30 +08:00
openvela-robot b40aa86a63 lavfi/subtitles: introduce stream_index
Signed-off-by: ValdikSS <iam@valdikss.org.ru>
2026-04-20 15:50:28 +08:00
openvela-robot 8a8889ee11 lavfi: add Bauer stereo-to-binaural audio filter
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:50:25 +08:00
openvela-robot 778de6a7e0 Merge commit 'a16431034d9bd44182bf844d6bbde2c98bc4e6b5'
* commit 'a16431034d9bd44182bf844d6bbde2c98bc4e6b5':
  hls: Factor the sequence computation

Conflicts:
	libavformat/hlsenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:50:19 +08:00
openvela-robot 5220ca25c5 matroskadec: read the CodecDelay element 2026-04-20 15:50:17 +08:00
openvela-robot 2095d9625c avcodec/mjpegdec: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:50:11 +08:00
openvela-robot e94fd75cc4 segment: Report the current media sequence
Useful for debugging mostly.
2026-04-20 15:50:09 +08:00
openvela-robot 1dfe4a0046 Merge commit '5c08ae4f37281441188447cd04dcaf7cd7ce031f'
* commit '5c08ae4f37281441188447cd04dcaf7cd7ce031f':
  segment: Add an option to prepend a string to the list entries

Conflicts:
	doc/muxers.texi
	libavformat/segment.c

See: 5e278c19c7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:59 +08:00
openvela-robot 720557e418 h264: drop commented out cruft 2026-04-20 15:49:57 +08:00
openvela-robot b230a65a2b lavu/hash: add hash_final helpers.
The helpers use local memory to compute the final hash,
making AV_HASH_MAX_SIZE safe to use.
2026-04-20 15:49:53 +08:00
openvela-robot 823f3a4771 segment: Add an option to prepend a string to the list entries
Useful to generate lists with absolute urls.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:49:51 +08:00
openvela-robot 8b9d8b86a4 Fix convertion typos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:44 +08:00
openvela-robot a54f143f76 dxva2_h264: add a workaround for old Intel GPUs
Old Intel GPUs expect the reference frame index to the actual surface,
instead of the index into RefFrameList as specified by the spec.

This workaround should be set when using one of the "ClearVideo" decoder
devices.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:49:41 +08:00
openvela-robot 5bdb5175a2 configure: add support for new CPUs
Add new -march values for Intel CPUs (introduced with GCC 4.9.x), add support
for the missing AMD btver* CPUs, and improve SunCC flags accordingly.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:39 +08:00
openvela-robot 3275957ba1 dxva2_h264: set the correct ref frame index in the long slice struct
The latest H.264 DXVA specification states that the index in this
structure should refer to a valid entry in the RefFrameList of the picture
parameter structure, and not to the actual surface index.

Fixes H.264 DXVA2 decoding on recent Intel GPUs (tested on Sandy and Ivy)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 15:49:37 +08:00
openvela-robot 175626c9be avformat/utils: add gif to tb_unreliable()
This improves the used timebases when gif is the source

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:33 +08:00
openvela-robot 05ce4662c4 lavc: eliminate tb_unreliable()
If framerate estimation is enabled, it makes sense to always apply it,
instead of limiting it to a few specific cases.
2026-04-20 15:49:31 +08:00
openvela-robot 594f7f2c55 Merge commit '802385dbc2c57abd76f6a00e32f3df35e9526c08'
* commit '802385dbc2c57abd76f6a00e32f3df35e9526c08':
  mov: Write prof section of tapt tag

See: 8a9b48bfa9
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:08 +08:00
openvela-robot 723b833233 mov: Write prof section of tapt tag
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 15:49:06 +08:00
Ben Avison c235b62c8c h264: Move search code search functions into separate source files.
This permits re-use with parsers for codecs which use similar start codes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2026-04-20 15:49:03 +08:00