No description
Find a file
Daniil Cherednik 816d74e0bb avcodec/opus/enc: fix CELT psy analysis and packet sizing
The CELT psychoacoustic path was effectively broken: analysis could use
the wrong queued audio and stale scratch samples, and raw band scores were
folded into the frame bit budget, where they could overflow instead of
only driving alloc_boost.

On top of that, c3aea7628c changed avctx->frame_size from fixed
120-sample steps to a configuration-derived value, while the CELT input
and psy paths still treated queue entries as 120-sample steps. That could
misalign psy analysis, read before a short overlap frame, stall silent
flushes, poison rate control with zero-bit silent frames, and overrun the
range coder on EOF or short tails.

This commit fixes these cases by using avctx->frame_size for psy step
accounting, aligning bufqueue analysis with actual audio, padding short
overlaps, and avoiding invalid bit-budget updates for silent or EOF
packets. This lets CELT produce valid packets again.
2026-05-23 10:38:28 +00:00
.forgejo .forgejo/CODEOWNERS: fix ogg pattern for @toots 2026-05-03 17:05:25 +00:00
compat avfilter/scale_cuda: fix color bleeding in lanczos scaling 2026-04-04 11:31:16 +00:00
doc lavf: wire id3v2 fdebug option 2026-05-22 08:20:13 -05:00
ffbuild ffbuild/common: remove DBG=1 to preprocess external asm 2026-04-03 16:15:33 +02:00
fftools fftools/ffmpeg_sched: allow throttling decoder outputs 2026-05-23 08:41:12 +00:00
libavcodec avcodec/opus/enc: fix CELT psy analysis and packet sizing 2026-05-23 10:38:28 +00:00
libavdevice avdevice/v4l2: fix mmap_free() skipping first buffer 2026-04-28 13:45:20 +00:00
libavfilter lavfi/blackdetect_vulkan: use integer timestamps and fix crash 2026-05-22 14:06:03 +09:00
libavformat avformat/ty: check rec_size 2026-05-23 00:04:46 +00:00
libavutil vulkan: properly check if the internally synchronized queue extension is supported 2026-05-22 23:06:38 +09:00
libswresample libswresample/arm: Change to the common indentation size 2026-04-29 13:49:27 +03:00
libswscale swscale/options: add missing option value for SWS_STRICT 2026-05-23 11:31:54 +02:00
presets
tests tests/checkasm/sw_yuv2rgb: cover nv12 and nv21 2026-05-22 10:03:07 +00:00
tools tools/zmqsend: close the input FILE 2026-05-15 20:35:56 -03:00
.gitattributes gitattributes: End merge conflicts in Changelog 2025-03-17 15:26:10 +01:00
.gitignore swscale/aarch64: add NEON sws_ops backend 2026-03-30 11:38:35 +00:00
.mailmap mailmap: add entry for myself 2025-08-08 21:51:15 +00:00
Changelog avcodec: remove CELT decoder 2026-05-22 09:33:52 +00:00
configure avcodec: remove CELT decoder 2026-05-22 09:33:52 +00:00
CONTRIBUTING.md CONTRIBUTING.md: add blank line after top heading 2026-04-20 12:32:50 +00:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 all: fix whitespace/new-line issues 2025-08-03 13:48:47 +02:00
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
FUNDING.json Add FUNDING.json 2025-06-23 14:48:40 +02:00
INSTALL.md INSTALL.md: add title heading and normalize section levels 2026-04-20 12:32:50 +00:00
LICENSE.md Remove libpostproc 2025-05-07 15:35:47 +02:00
MAINTAINERS MAINTAINERS: add myself for libavfilter 2026-04-25 19:18:28 +02:00
Makefile configure: add detection of assembler support for SME2 2026-03-04 23:52:36 +02:00
README.md README.md: use consistent ATX heading style 2026-04-20 12:32:50 +00:00
RELEASE RELEASE: update to 8.0 2025-08-14 08:42:29 -04:00

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides means to alter decoded audio and video through a directed graph of connected filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.