No description
Find a file
Andreas Rheinhardt 9102a90a95 Revert "avcodec/decode: Fix avcodec parameters when bsfs are enable by decoder"
This reverts commit 1c17061397.

The commit intended to provide certain codecs using *_mp4toannexb
bitstream filters with updated (annex B) extradata (even when
the user-supplied one was ISOBMFF), yet BSFs are allowed to change
way more. The media100_to_mjpegb BSF used by the media100 decoder
changes the codec id; the commit being reverted therefore changed
AVCodecContext.codec_id which is an API violation and broke
media100 decoding with the FFmpeg cli tool.

This commit also made changes from the internal BSF externally
visible. extradata is documented to be "owned by the codec and
freed in avcodec_free_context()" which does not include replacing
it with something else in avcodec_open2() and may surprise users
who think that AVCodecContext.extradata is immutable before
avcodec_free_context(). It also incurred a memdup which is completely
unnecessary for most decoders.

Therefore this commit is reverted. The problem it tried to solve
will be solved differently in the next commit.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-06-17 00:35:13 +02:00
compat compat/cuda: add device side printf function 2025-05-14 22:08:33 +02:00
doc doc/encoders: Document mediacodec wrapper 2025-06-16 10:57:06 +08:00
ffbuild ffbuild: correctly silence and tag new css/html steps 2025-05-28 01:02:55 +02:00
fftools ffmpeg_demux: init resume_warn variable 2025-06-11 19:32:05 +02:00
libavcodec Revert "avcodec/decode: Fix avcodec parameters when bsfs are enable by decoder" 2025-06-17 00:35:13 +02:00
libavdevice various: fix typos 2025-06-15 21:00:38 +05:30
libavfilter avfilter/vf_overlay: Hoist calculations out of loop 2025-06-17 00:33:09 +02:00
libavformat avformat/dhav: Check reading data 2025-06-17 00:30:30 +02:00
libavutil avutil: Fix linking x86 asm constants with Clang in MSVC mode 2025-06-13 11:36:20 +03:00
libswresample libs: bump major version for all libraries 2025-03-28 14:44:34 -03:00
libswscale swscale/utils: Fix potential race when initializing xyz tables 2025-05-27 13:49:26 +02:00
presets
tests checkasm: h264dsp: test luma_dc_dequant 2025-06-16 01:31:45 +02:00
tools tools/target_dem_fuzzer: remove unused fuzz_tag 2025-06-07 14:33:27 +02:00
.gitattributes gitattributes: End merge conflicts in Changelog 2025-03-17 15:26:10 +01:00
.gitignore ffmpeg/repo: Add dot-folders in the repository root to .gitignore 2025-04-19 17:29:12 +02:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog Changelog: VVC supports all content of SCC 2025-05-17 09:24:01 +08:00
configure configure: rename POSIX ioctl check 2025-06-08 19:42:56 -04:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
INSTALL.md Add tools/merge-all-source-plugins 2025-05-15 12:17:04 +02:00
LICENSE.md Remove libpostproc 2025-05-07 15:35:47 +02:00
MAINTAINERS MAINTAINERS: Add myself for graph printing 2025-06-07 14:32:25 +02:00
Makefile Makefile: Split ALLFFLIBS 2025-05-26 20:33:10 +02:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update release number after release/7.1 branch 2024-10-09 01:55:50 +02: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.