Commit Graph

892 Commits

Author SHA1 Message Date
openvela-robot 9aab67300f Drop unnecessary libavutil/x86/asm.h #includes 2026-04-20 18:29:42 +08:00
openvela-robot 329adda5c9 avcodec/proresdec2: Add support for grayscale videos
Signed-off-by: Håvard Espeland <espeland@mixedrealities.no>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:39 +08:00
openvela-robot 21a6a5dbb7 ac3: Check the array bound before dereferencing
CC: libav-stable@libav.org

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 18:29:36 +08:00
openvela-robot 9120e63adf Merge commit '44d16df413878588659dd8901bba016b5a869fd1'
* commit '44d16df413878588659dd8901bba016b5a869fd1':
  h264_parser: eliminate H264SliceContext usage

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2026-04-20 18:29:33 +08:00
Mark Thompson ac30db9a0b vaapi_encode: Check config attributes before creating config
This prevents attempts to use unsupported modes, such as low-power
H.264 mode on non-Skylake targets.  Also fixes a crash on invalid
configuration, when trying to destroy an invalid VA config/context.
2026-04-20 18:29:31 +08:00
openvela-robot d84c9d98af build: Ignore generated mapfile and remove it on distclean 2026-04-20 18:29:30 +08:00
openvela-robot bb7a7de878 avcodec/dca: move EXSS sampling frequency arrays to dca.c
Avoids unwanted parser dependency on dcadata.

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 18:29:27 +08:00
openvela-robot b3d6b2d184 lavc: handle hw_frames_ctx where necessary
avcodec_copy_context() didn't handle hw_frames_ctx references correctly
which could cause crashes.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 18:29:24 +08:00
openvela-robot 6e957319a7 lavc/mediacodec: factorize static fields initialization 2026-04-20 18:29:21 +08:00
openvela-robot 117250bda4 golomb: Give svq3_get_se_golomb()/svq3_get_ue_golomb() better names 2026-04-20 18:29:18 +08:00
openvela-robot e4c5a3cb16 avcodec/dca_exss: prepare to be called from parser context
Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 18:29:15 +08:00
openvela-robot 57e3b102d7 fate: More fine-grained dependencies for voice codec tests 2026-04-20 18:29:12 +08:00
openvela-robot 88a0ce5222 avfilter/af_hdcd: Replace complexer expression by litteral constant
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:09 +08:00
openvela-robot d3876d2195 avcodec: Bump micro version after changing public JPEG 2000 defines 2026-04-20 18:29:06 +08:00
openvela-robot fb2c96297b libavutil/opencl: fixed uninitialized var warning
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:03 +08:00
openvela-robot 5106c5f5ac avfiltergraph: check the query_formats() return value 2026-04-20 18:29:00 +08:00
openvela-robot faf12dd37b avcodec/truemotion2rt: also export key frame info
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:28:57 +08:00
openvela-robot a3f3bfbbf8 mp3: Make the extrasize explicit
Initialize the bit buffer with the correct size (amount of bits that will
be read) instead of relying on the bitstream reader overreading the
correct values.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 18:28:54 +08:00
openvela-robot cdaed97bf5 avcodec/iff: mention RGB8/RGBN decoder
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:28:51 +08:00
openvela-robot 7be5ff5a3b avconv: stop using AVStream.codec
It is now only used by the av_parser_change() call during streamcopy, so
allocate a special AVCodecContext instance for this case. This instance
should go away when the new parser API is finished.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 18:28:48 +08:00
openvela-robot aee61a4db0 avcodec/iff: add support for ANBR files
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:28:30 +08:00
openvela-robot c829d78cdc mov: Print reason of loci parsing failure
Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:28:25 +08:00
openvela-robot ab0549f3df avfilter: add loudnorm
Signed-off-by: Kyle Swanson <k@ylo.ph>
2026-04-20 18:28:22 +08:00
openvela-robot 63674e41fe movenc: Add a missed const
This was missed in e1eb0fc960, when ff_interleaved_peek was
changed to include const during the evolution of the patch.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:28:19 +08:00
openvela-robot 96c7f6810b avcodec/iff: scala anim32 & anim16 decompression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:28:16 +08:00
openvela-robot 7fab1ff87c avio: Allow custom IO users to get labels for the output bytestream
This allows callers with avio write callbacks to get the bytestream
positions that correspond to keyframes, suitable for live streaming.

In the simplest form, a caller could expect that a header is written
to the bytestream during the avformat_write_header, and the data
output to the avio context during e.g. av_write_frame corresponds
exactly to the current packet passed in.

When combined with av_interleaved_write_frame, and with muxers that
do buffering (most muxers that do some sort of fragmenting or
clustering), the mapping from input data to bytestream positions
is nontrivial.

This allows callers to get directly information about what part
of the bytestream is what, without having to resort to assumptions
about the muxer behaviour.

One keyframe/fragment/block can still be split into multiple (if
they are larger than the aviocontext buffer), which would call
the callback with e.g. AVIO_DATA_MARKER_SYNC_POINT, followed by
AVIO_DATA_MARKER_UNKNOWN for the second time it is called with
the following data.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:28:13 +08:00
openvela-robot c45f7ec164 avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
Fixes: undefined shift.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:28:10 +08:00
openvela-robot 2d11ad7373 lavf: Raw G.729 demuxer
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2026-04-20 18:28:08 +08:00
openvela-robot 1cb0ff5513 h2645_parse: support badly muxed mp4 streams
Some streams contain an additional AnnexB NAL inside the mp4/nalff NALU.
This commonly occurs in interlaced streams where both fields are packed
into the same MP4 NAL with an AnnexB startcode in between.

Port handling of this format from the previous h264 nal handling.

Fixes trac #5529
2026-04-20 18:28:00 +08:00
openvela-robot a27785d570 tools: Port to codec parameters API 2026-04-20 18:27:57 +08:00
openvela-robot d1e74fb8fa avcodec/iff: fix artifacts with uncompressed ham ANIMs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:27:54 +08:00
openvela-robot 4a5bcb39c1 hwcontext: add a dxva2 implementation 2026-04-20 18:27:52 +08:00
openvela-robot e2ae58aa7a ffmpeg: Check that r_frame_rate is set before attempting to use it
Avoids unexpected occurance and dependency on NaN behavior and divisions by 0

Testcase: fate-lavf-fate-avi_cram

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:27:48 +08:00
openvela-robot 3394ade808 avpacket: fix setting AVPacket.data in av_packet_ref()
The data field does not necessarily point to the beginning of the
underlying AVBuffer.

CC: libav-stable@libav.org
2026-04-20 18:27:45 +08:00
openvela-robot ffcb491d53 swresample/arm: add ff_resample_common_apply_filter_{x4,x8}_{float,s16}_neon 2026-04-20 18:27:41 +08:00
openvela-robot 01f32067af Split global .gitignore file into per-directory files 2026-04-20 18:27:38 +08:00
openvela-robot 3ddfa33b4a Merge commit '92fdea37477b5a2d1329e5ef0773e24473fa8f12'
These are all trivial to merge.

* commit '92fdea37477b5a2d1329e5ef0773e24473fa8f12':
  vaapi_h265: Add -qp option, use it to replace use of -global_quality
  vaapi_h265: Add constant-bitrate encode support
  vaapi_h264: Add encode quality option (for quality-speed tradeoff)
  vaapi_h264: Add -qp option, use it to replace use of -global_quality
  vaapi_encode: Add support for codec-local options
  vaapi_h264: Add constant-bitrate encode support
  vaapi_encode: Refactor slightly to allow easier setting of global options

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:27:21 +08:00
openvela-robot 8f19e0b43f avcodec/nvenc: Write buffPeriod/picTime SEI in both CBR modes 2026-04-20 18:27:10 +08:00
openvela-robot 22a58e143c Reduce the scope of some variables
This avoids unused variable warnings after the next version bump.
Also drop a trace level av_log() call that is in the way.
2026-04-20 18:27:07 +08:00
openvela-robot 6bd7066bd5 vf_colorspace: add floyd-steinberg dithering option to full conversion. 2026-04-20 18:26:54 +08:00
openvela-robot 2e4d1927c6 simple_idct_template: Fix strict aliasing violation
This fixes fate-wmv8-intrax8 in certain configurations, e.g.
gcc 4.4.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:26:47 +08:00
openvela-robot 9f83e8444b Merge commit '104c804bcaac24b52eb51ed17df2fb311e6ae73e'
* commit '104c804bcaac24b52eb51ed17df2fb311e6ae73e':
  lavc: VAAPI encode common infrastructure

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:26:19 +08:00
openvela-robot e26ea32be7 lavd/avfoundation: use AVCodecParameters
Fixes "Could not find codec parameters for stream" error (#5494)

Signed-off-by: Rick Kern <kernrj@gmail.com>
2026-04-20 18:26:04 +08:00
openvela-robot 64cc4c60e2 configure: Document --enable-libfontconfig 2026-04-20 18:26:01 +08:00
openvela-robot a7893933ba avcodec/hevc_parser: fix packet_split function name
Fixes compilation of hevc_parser without hevc_decoder

Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 18:25:58 +08:00
openvela-robot 0e2b8d7d70 vf_frei0r: Drop overly verbose and broken debug output 2026-04-20 18:25:55 +08:00
openvela-robot 7038d20a39 lavc/videotoolboxenc: Use shared pixel buffer pool
This reduces the chance of a memcpy in the media server.

Signed-off-by: Rick Kern <kernrj@gmail.com>
2026-04-20 18:25:51 +08:00
Vittorio Giovara 6b1f6f16c2 cosmetics: Fix spelling mistakes
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 18:25:49 +08:00
openvela-robot 48a75b93c8 Remove unnecessary get_bits.h #includes and add missing headers where needed.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 18:25:48 +08:00
openvela-robot 2409295764 avcodec/h264: Put the removed SPS handling code back
reverts one hunk from 7966ddfc0b
The new code from 7966ddfc0b only covers extradata based SPS

Fixes: ffplay -ss 13 58af5798-fa2c-42a2-997d-dc8e49de2d8a.flv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:25:44 +08:00
openvela-robot e079a26f9e Drop pointless assert.h #includes 2026-04-20 18:25:41 +08:00
openvela-robot d1f22d9cb0 wmalossless: allow calling madd_int16
This is done by actually handling the "prev_values" in the cascaded LMS data
as if it were int16_t, thus requiring switching at various locations the
computations.
2026-04-20 18:25:16 +08:00
openvela-robot 9bf34ac9e1 mpegts: Validate the SL Packet Header Configuration
timeStampLength, OCRLength and AU_Length have well specified upper
boundaries.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 18:25:14 +08:00
openvela-robot e95d840953 avformat: add Wideband Single-bit Data (WSD) demuxer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:25:08 +08:00
openvela-robot 9d71b57864 Revert "mmaldec: autodetect by default" since it breaks linking on systems without mmal libraries
This reverts commit 33ac77e850.
2026-04-20 18:25:05 +08:00
openvela-robot dd986721bc configure: Add pixelutils dependency for framerate filter. 2026-04-20 18:25:02 +08:00
openvela-robot 4e9fc63332 testprogs: Mark some tables as static const 2026-04-20 18:24:59 +08:00
openvela-robot fd587ff42d qsv: Fix wrong ticks_per_frame for H.264
For H.264 stream ticks_per_frame should be 2, as per the docs.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:24:44 +08:00
openvela-robot 167d41ac95 fate: Add test for MSS1 2026-04-20 18:24:41 +08:00
openvela-robot 8a17dbc855 avcodec/h264: Only recover from reference pictures
Fixes spec compliance
Fixes Ticket5346

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:24:38 +08:00
openvela-robot 23c8323b80 dds: Drop gray-alpha swapping
The original sample was generated with invalid software.
2026-04-20 18:24:35 +08:00
openvela-robot 5e45539259 avformat/mux: Check that deinit is set before calling it
Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:24:11 +08:00
openvela-robot 2559582ff8 h264_parser: switch to h2645_parse for NAL unescaping
Remove now unused ff_h264_decode_nal().
2026-04-20 18:24:06 +08:00
openvela-robot 3313014da7 fate: Add test for ticket 1833 (Ogg/Vorbis Chapters)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:23:42 +08:00
openvela-robot 8c830e61a3 ape: Avoid undefined behaviour
Avoid the clang warning

"warning: shifting a negative signed value is undefined"
2026-04-20 18:23:39 +08:00
openvela-robot 60b59a3639 Merge commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0'
* commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0':
  opt: Add av_opt_copy()

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:23:36 +08:00
openvela-robot 9570f3ce35 libxvid: Create extradata in init using a dummy frame
Modifying global header extradata in encode_frame is an API violation
and only happens to work currently because mov writes its header
at the end of the file.

Heavily based off of a patch from 2012 by Nicolas George.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2026-04-20 18:23:33 +08:00
openvela-robot 9e0b7ea045 Merge commit '933dec0e29ec4d2cb83474279a6c52d62fdb7310'
* commit '933dec0e29ec4d2cb83474279a6c52d62fdb7310':
  file: Add an option for following a file that is being written

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:23:29 +08:00
openvela-robot 62edc67c52 Generate the lists of enabled protocols/bsfs from configure. 2026-04-20 18:23:26 +08:00
openvela-robot af081762ca lavfi/af_hdcd: Implement high definition audio cd filtering.
Fixes ticket #4441.
2026-04-20 18:22:57 +08:00
Mark Thompson ebf5b7292b vaapi_encode: Add support for codec-local options
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 18:22:54 +08:00
openvela-robot 759c15b670 vaapi_encode: Refactor slightly to allow easier setting of global options
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 18:22:54 +08:00
openvela-robot 74a6f35028 Merge commit 'ba357e98691ee4fe1a503b8830c0050be4127475'
* commit 'ba357e98691ee4fe1a503b8830c0050be4127475':
  avprobe: switch to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:21:57 +08:00
openvela-robot 008d138620 libavcodec: Add H264/MPEG4 encoders based on OpenMAX IL
Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:21:54 +08:00
openvela-robot f992e73fe7 Merge commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7'
* commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7':
  examples/output: convert to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2026-04-20 18:21:33 +08:00
openvela-robot 5bd9acde3c testprogs: Add missing libm.h includes
This fixes building on MSVC 2010 and 2012 after d12b5b2f13.

Signed-off-by: Martin Storsjö <martin@martin.st>
2026-04-20 18:21:30 +08:00
openvela-robot 060f2fdc0b doc/filters: add drawtext example
Show example which draws text at a random position, and switches positions every 30 seconds

Signed-off-by: Mulvya <mulvya@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>
2026-04-20 18:21:20 +08:00
openvela-robot 40e64ae10a configure: cosmetics: Drop pointless end-of-line semicolons 2026-04-20 18:21:17 +08:00
openvela-robot 8756340650 avformat: add aix demuxer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:21:14 +08:00
openvela-robot 6c2461cd1d dds: Simplify postprocessing check 2026-04-20 18:21:11 +08:00
openvela-robot 8759c12d0d libavcodec/exr : cosmetic change 2026-04-20 18:21:07 +08:00
openvela-robot d6ccb983aa nvenc_h264: Fix name of private AVClass 2026-04-20 18:21:04 +08:00
openvela-robot a68a4a0559 AAC encoder: fix initialization of minsf
In some situations (exactly zeroed DC coeffs) minsf would
be initialized with garbage
2026-04-20 18:21:01 +08:00
openvela-robot 6ab56b1155 matroska: Write the field order information
And bump the document version to 4.
2026-04-20 18:20:58 +08:00
openvela-robot 5ced599705 lavu: improve documentation of some AVFrame functions 2026-04-20 18:20:52 +08:00
openvela-robot 8bf53e94f7 avconv: Drop an unused variable 2026-04-20 18:20:49 +08:00
openvela-robot 3bf4824d7c swscale: Deprecate vector functions which are unused outside swscale
There are no known users of these functions within debian
It should be thus possible to remove these functions without recommandition of a
replacement

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:20:30 +08:00
openvela-robot 9e074568c1 matroska: Support interlaced content correctly
The matroska specification now has two elements for it.
2026-04-20 18:20:28 +08:00
openvela-robot 9567643710 fate: Add filter-metadata-cropdetect
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:20:24 +08:00
openvela-robot 0a365928c9 h264: Add missing ff_ prefix to internally visible h264_init_dequant_tables() 2026-04-20 18:20:22 +08:00
openvela-robot 8cee2b3979 avcodec/nvenc: Generate AUD NAL units for better compatiblity 2026-04-20 18:20:18 +08:00
Mark Thompson 9f4b71b3a0 lavc: VAAPI encode common infrastructure
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2026-04-20 18:20:16 +08:00