1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00
Go to file
Muhammad Faiz 7fae0ea21d avfilter: take_samples: do not directly return frame when samples are skipped
Modifying data pointer when skipping samples may make it unaligned.
Workaround for Ticket6349.

This should fix the crash of ticket's testcase and a crash/regression
with avxsynth (reported by Michael Niedermayer).

Also change frame->nb_samples < max to frame->nb_samples <= max.
This improves performance. Benchmark:
./ffmpeg -filter_complex "aevalsrc=0:n=1166,firequalizer=fixed=on" -f null null
old:
  25767 decicycles in take_samples,    1023 runs,      1 skips
  25422 decicycles in take_samples,    2047 runs,      1 skips
  25181 decicycles in take_samples,    4095 runs,      1 skips
  24904 decicycles in take_samples,    8191 runs,      1 skips

new:
    550 decicycles in take_samples,    1024 runs,      0 skips
    548 decicycles in take_samples,    2048 runs,      0 skips
    545 decicycles in take_samples,    4096 runs,      0 skips
    544 decicycles in take_samples,    8192 runs,      0 skips

Reviewed-by: Nicolas George <george@nsup.org>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
(cherry picked from commit fc3a03fcf9)
2017-05-20 23:30:29 +07:00
compat
doc doc/general: fix project name after 2b1a6b1ae 2017-05-14 18:22:05 +02:00
libavcodec avcodec/pixlet: Fix shift exponent 4294967268 is too large for 32-bit type 'int' 2017-05-14 17:56:21 +02:00
libavdevice Bump minor for 3.3 2017-04-02 19:49:45 +02:00
libavfilter avfilter: take_samples: do not directly return frame when samples are skipped 2017-05-20 23:30:29 +07:00
libavformat avformat/wavdec: Check chunk_size 2017-05-14 00:21:49 +02:00
libavresample Bump minor for 3.3 2017-04-02 19:49:45 +02:00
libavutil avutil/hwcontext_dxva2: Don't improperly free IDirect3DSurface9 objects 2017-05-16 22:00:48 +01:00
libpostproc Bump minor for 3.3 2017-04-02 19:49:45 +02:00
libswresample Bump minor for 3.3 2017-04-02 19:49:45 +02:00
libswscale libswscale/tests/swscale: Fix uninitialized variables 2017-05-14 01:44:58 +02:00
presets
tests tests/fate/filter-video: fix framerate filter tests 2017-04-12 21:09:18 +02:00
tools
.gitattributes
.gitignore
.travis.yml
arch.mak
Changelog Changelog: update 2017-05-14 18:22:27 +02:00
cmdutils_common_opts.h
cmdutils_opencl.c
cmdutils.c
cmdutils.h
common.mak
configure configure: Fix decklink license dependency. 2017-04-12 22:51:03 +02:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_cuvid.c
ffmpeg_dxva2.c
ffmpeg_filter.c ffmpeg: check for unconnected outputs 2017-05-07 19:52:00 +02:00
ffmpeg_opt.c ffmpeg: check for unconnected outputs 2017-05-07 19:52:00 +02:00
ffmpeg_qsv.c
ffmpeg_vaapi.c
ffmpeg_vdpau.c
ffmpeg_videotoolbox.c
ffmpeg.c ffmpeg: count packets when queued 2017-05-02 16:42:36 -03:00
ffmpeg.h ffmpeg: check for unconnected outputs 2017-05-07 19:52:00 +02:00
ffplay.c
ffprobe.c ffprobe: only use custom logging callback if -show_log is set 2017-04-12 21:09:32 +02:00
ffserver_config.c
ffserver_config.h
ffserver.c
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE Update for 3.3.1 2017-05-14 02:38:30 +02:00
RELEASE_NOTES add release notes based on release 3.2 2017-04-12 03:12:19 +02:00
version.sh

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.
  • ffserver is a multimedia streaming server for live broadcasts.
  • 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.