FFmpeg git repo
Go to file
James Almer d17624507a avcodec/utils: don't return negative values in av_get_audio_frame_duration()
In some extrme cases, like with adpcm_ms samples with an extremely high channel
count, get_audio_frame_duration() may return a negative frame duration value.
Don't propagate it, and instead return 0, signaling that a duration could not
be determined.

Fixes ticket #9312

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit e01d306c64)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-06 13:56:53 +02:00
compat
doc Update missed irc links 2021-10-06 13:54:16 +02:00
ffbuild
fftools
libavcodec avcodec/utils: don't return negative values in av_get_audio_frame_duration() 2021-10-06 13:56:53 +02:00
libavdevice
libavfilter avfilter/af_drmeter: Check that there is data 2021-10-06 13:54:16 +02:00
libavformat network: Define ENOTCONN as WSAENOTCONN if not defined 2021-10-06 13:56:53 +02:00
libavresample
libavutil avutil/common: Add FF_PTR_ADD() 2021-09-10 16:04:26 +02:00
libpostproc
libswresample
libswscale swscale/slice: Fix wrong return on error 2021-10-06 13:54:16 +02:00
presets
tests
tools tools/cws2fws: Check read() for failure 2021-10-06 13:54:16 +02:00
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog Changelog: update 2020-07-09 01:30:42 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE Update for 4.2.4 2020-07-07 20:39:24 +02:00
RELEASE_NOTES Update missed irc links 2021-10-06 13:54:16 +02:00
configure Update missed irc links 2021-10-06 13:54:16 +02:00

README.md

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 a mean to alter decoded Audio and Video through chain of 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.