mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
e03b034e45e68450e16f913c8aaf5ec362bc1446
When the previous reply was a partial response (e.g. due to a seek to the end of the file), and the remaining data from that partial response is below the short seek size threshold, we can serve this seek by just draining that data and re-using the existing connection. This can currently only happen when using keep-alive connections (-multiple_requests 1) and seeking from the end of the file to somewhere else, in which case the file's tail can be drained and the connection re-used. Under other circumstances, however, we still need to force a reconnection, because we do not yet send partial range requests. (This will be changed in the following commit) We need to take special care not to regress the existing fallback logic for when `http_open_cnx` fails, so here is a quick case analysis: non-drain path: - identical to the current soft drain fails: (ffurl_read error path) - s->hd = old_hd = NULL - http_open_cnx() always opens a new connection - on failure, old buffer is restored and s->hd remains NULL soft drain succeeds, http_open_cnx() fails: - s->hd is set to NULL by http_open_cnx() failure path - old_hd was never set, so remains NULL - old buffer is restored, s->hd remains NULL In either case, the outcome that any (previously valid) buffer is left as-is, the offset is unchanged, and the connection ends up closed (s->hd == NULL). This is okay to do after the previous change to http_buf_read, which allows it to internally re-open the connection if needed.
…
FFmpeg README
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
Libraries
libavcodecprovides implementation of a wider range of codecs.libavformatimplements streaming protocols, container formats and basic I/O access.libavutilincludes hashers, decompressors and miscellaneous utility functions.libavfilterprovides means to alter decoded audio and video through a directed graph of connected filters.libavdeviceprovides an abstraction to access capture and playback devices.libswresampleimplements audio mixing and resampling routines.libswscaleimplements 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,ismindexandqt-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.
Description
Languages
C
89.4%
Assembly
8.3%
Makefile
1.3%
C++
0.3%
GLSL
0.2%
Other
0.3%