FFmpeg git repo
Go to file
Andreas Rheinhardt 0bc3c070fb avcodec/movtextenc: Fix encoding of subtitles with multiple rects
The format of a mov_text (3GPP Timed Text) sample is:

uint16_t text_length;
uint8_t  text[text_length];
TextSampleModifierBox text_modifier;

Yet in case our encoder receives an AVSubtitle with multiple
ASS AVSubtitleRects, it creates something like this:
uint16_t text_length;
uint8_t  text[text_length_1];
TextSampleModifierBox text_modifier_1;
uint8_t  text[text_length_2];
TextSampleModifierBox text_modifier_2;
...

where text_length is the sum of all the text_length_*.
This commit fixes this by writing the TextSampleModifierBoxes only
after all the rects have been written.

Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-12-02 07:29:02 +01:00
compat
doc fftools/ffprobe: print size of attachment streams (extradata_size) 2021-11-29 21:30:11 +01:00
ffbuild
fftools ffmpeg: fix usage of -shortest in codec copy scenarios 2021-12-01 18:16:56 -03:00
libavcodec avcodec/movtextenc: Fix encoding of subtitles with multiple rects 2021-12-02 07:29:02 +01:00
libavdevice av(codec|device): Don't cast pointers to int 2021-11-21 00:35:30 +01:00
libavfilter avfilter/src_movie: add format_opts for the opened file 2021-11-29 09:26:40 +08:00
libavformat avformat/scd: add demuxer 2021-12-02 01:41:55 +10:00
libavutil videotoolbox: add alpha support 2021-11-28 16:40:58 -06:00
libpostproc
libswresample
libswscale swscale: add P210/P410/P216/P416 input 2021-11-28 16:40:43 -06:00
presets
tests fate/ffmpeg: add some more flags to the shortest tests 2021-12-01 22:22:19 -03:00
tools tools/target_dec_fuzzer: Adjust DXA threshold 2021-12-01 17:44:56 +01:00
.gitattributes
.gitignore
.mailmap
.travis.yml
Changelog configure: Add support for loongarch. 2021-12-01 17:44:56 +01:00
configure configure: Add support for loongarch. 2021-12-01 17:44:56 +01:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE

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.