1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00
Go to file
Andreas Rheinhardt 6ee7375ef5 avcodec/v4l2_m2m: Avoid using intermediate buffer
Up until now, v4l2_m2m would write via snprintf() into an intermediate
buffer and then copy from there (via strncpy()) to the end buffer. This
commit changes this by removing the intermediate buffer.

The call to strncpy() was actually of the form strncpy(dst, src,
strlen(src) + 1) which is unsafe in general, but safe in this instance
because dst and src were both of the same size and src was a proper
zero-terminated string. But this nevertheless led to a compiler warning
"‘strncpy’ specified bound depends on the length of the source argument
[-Wstringop-overflow=]" in GCC 9.2. strlen() was unnecessary anyway.

Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2020-03-10 15:17:16 -03:00
compat avformat/udp: support w32pthreads compat 2020-03-08 19:08:04 +01:00
doc API: add AV_PKT_DATA_ICC_PROFILE to AVPacketSideDataType 2020-03-10 15:10:06 +00:00
ffbuild
fftools fftools/ffmpeg_opt: remove bogus warning of multiple -af and -vf usage 2020-03-08 18:38:31 +01:00
libavcodec avcodec/v4l2_m2m: Avoid using intermediate buffer 2020-03-10 15:17:16 -03:00
libavdevice avdevice/decklink: add support for SDK version 11.5 2020-02-26 21:32:56 +01:00
libavfilter avfilter/f_sendcmd: implement expr flag 2020-03-03 20:38:56 +01:00
libavformat avformat/movenc: add ICC profile support to colr atom 2020-03-10 15:11:47 +00:00
libavresample
libavutil hwcontext_vaapi: Only accept a render node when deriving from DRM device 2020-02-24 00:09:51 +00:00
libpostproc Silence "string-plus-int" warning shown by clang. 2020-01-06 22:38:56 +01:00
libswresample Silence "string-plus-int" warning shown by clang. 2020-01-06 22:38:56 +01:00
libswscale libswscale/x86/yuv2rgb: Fix Segmentation Fault when load unaligned data 2020-02-26 11:10:46 +01:00
presets
tests h264_mp4toannexb: Try to avoid four byte startcodes 2020-03-06 00:58:31 +01:00
tools tools/target_dec_fuzzer: limit per frame samples for APE 2020-01-30 19:59:10 +01:00
.gitattributes
.gitignore
.mailmap mailmap: Add another old mail address I used. 2020-02-27 13:02:06 +01:00
.travis.yml
Changelog avformat: Add AMQP version 0-9-1 protocol support 2020-03-09 22:07:17 +01:00
configure avformat: Add AMQP version 0-9-1 protocol support 2020-03-09 22:07:17 +01:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: Add myself as libzmq maintainer 2020-02-15 18:25:51 +01:00
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 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.