No description
Find a file
Zhao Zhili 25812d3033 avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format
This bsf converts AV_PKT_DATA_NEW_EXTRADATA side data in avcc format
to in-band annexb format. However, the side data wasn't been removed
and copied from input packet to output packet. So the output packet
has mixed bitstream format. We don't support mixed bitstream format.
For example, h264_metadata report error in the following case:

ffmpeg -i foo.flv \
  -bsf:v "h264_mp4toannexb,h264_metadata" \
  -c copy -f null

This patch removed NEW_EXTRADATA side data after process.

This patch also add a check so only NEW_EXTRADATA in avcc format is
processed. NEW_EXTRADATA in annexb format is copied to output as is.

Reported-by: jiangjie <jiangjie618@gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2025-04-29 15:25:08 +08:00
compat compat/w32pthreads: change pthread_t into pointer to malloced struct 2024-12-16 09:43:19 +01:00
doc Changelog, doc: Add entries for new APV features 2025-04-27 15:52:30 +01:00
ffbuild ffbuild: fix include path for uninstalled .pc files 2025-04-22 21:04:36 +02:00
fftools fftools/textformat/avtextformat: Remove unused variable 2025-04-17 01:49:04 +02:00
libavcodec avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format 2025-04-29 15:25:08 +08:00
libavdevice avfoundation: Fix compilation for OSes other than macOS and iOS 2025-04-04 17:12:33 +03:00
libavfilter avfilter/drawutils: narrow variable scopes 2025-04-22 20:59:16 +02:00
libavformat avformat/mov: Reduce seek when interleaved_read is disabled 2025-04-29 14:35:09 +08:00
libavutil vulkan: use _KHR suffix for push descriptor properties struct ID 2025-04-23 01:46:37 +02:00
libpostproc postproc/tests: Add test tools to .gitignore 2025-04-28 16:56:44 +02:00
libswresample libs: bump major version for all libraries 2025-03-28 14:44:34 -03:00
libswscale swscale/x86/rgb2rgb: Deduplicate ASM constants 2025-04-13 22:49:21 +02:00
presets
tests avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format 2025-04-29 15:25:08 +08:00
tools tools/target_dec_fuzzer: Assert on AVERROR_BUG 2025-04-25 12:35:48 +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, doc: Add entries for new APV features 2025-04-27 15:52:30 +01:00
configure lavc: APV decoder 2025-04-27 15:52:30 +01: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 INSTALL: explain the circular dependency issue and solution 2024-11-03 19:35:23 +01:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: Add myself 2025-03-25 11:38:21 +01:00
Makefile configure: Add wasm as a fake arch 2024-12-04 16:43:06 +08: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.