Commit Graph

800 Commits

Author SHA1 Message Date
openvela-robot ac769b437b avcodec/sheervideo: fix predictions for c82p format
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2026-04-20 18:30:47 +08:00
openvela-robot 1a23197575 vaapi_h264: Add support for SEI messages
Send buffering_period and pic_timing messages when in modes
targetting bitrate.  Also adds NAL HRD parameters to VUI.
2026-04-20 18:30:44 +08:00
openvela-robot 608e6785b1 avutil/x86util: move haddps sse emulation from showcqt
Signed-off-by: James Almer <jamrial@gmail.com>
2026-04-20 18:30:40 +08:00
openvela-robot 621bf0dcf8 dvbsub_parser: Add missing mem.h #include 2026-04-20 18:30:38 +08:00
openvela-robot 7d62d6b450 avformat/rawdec: Fix avg_framerate for h264
The framerate is 25 which is a fixed default and is wrong undo the 1 line
change which caused this regression
Only the avg_frame rate setting is removed
The timebase update is not done as there was a objection (see ML)
Fixes Ticket 5444

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:30:22 +08:00
openvela-robot 3779443de7 Remove unnecessary get_bits.h #includes 2026-04-20 18:30:18 +08:00
openvela-robot 998862b5e6 avformat/mpegts: Do not trust BSSD descriptor, it is sometimes not an S302M stream
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:30:14 +08:00
openvela-robot 7322628e43 avconv: Do not copy extradata if source buffer is empty
Fixes clang-usan runtime error "null pointer passed as argument 2,
which is declared to never be null" while streamcopying.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2026-04-20 18:30:11 +08:00
openvela-robot 95164158a7 Seperate x264rgb encoder and only enable when its actually supported
This avoids enabling and building the x264rgb encoder when its actually not supported and
thus would not work

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:30:07 +08:00
openvela-robot 6471e7ece4 vp9: Return the correct size when decoding a superframe
According to avcodec.h, avcodec_decode_video2 should return the number of
bytes used if a frame was decoded.

The current implementation returns size - used size of all the subframes.
This fixes the VLC's bug https://trac.videolan.org/vlc/ticket/16836.

The superframe is always fully consumed.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
2026-04-20 18:30:04 +08:00
openvela-robot f8296eceb3 avcodec/mips/h264qpel_mmi.c: Version 2 of the optimizations for loongson mmi
1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
3. use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)
4. h264qpel use hepldsp optimizations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:57 +08:00
openvela-robot 9e0e2a7014 build: Only enable symbol reduction if the compiler does proper DCE
With compilers that do not support proper dead code elimination, like
Sun C 5.12, linking fails due to missing references to unavailable,
but also unused, symbols.

Bug-Id: 895
2026-04-20 18:29:54 +08:00
openvela-robot d48446695f avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow
Fixes CID1355110

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:51 +08:00
openvela-robot 997925ae0d build: Print a message when generating version scripts 2026-04-20 18:29:48 +08:00
openvela-robot 104a80bb08 fate: add aemphasis test
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-04-20 18:29:45 +08:00
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
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
Diego Biurrun ac7110fddf tests: Move all test programs to a subdirectory 2026-04-20 18:27:39 +08:00