|author||Xiaohan Wang <email@example.com>||Mon Feb 26 19:53:00 2018|
|committer||Xiaohan Wang <firstname.lastname@example.org>||Mon Feb 26 20:00:46 2018|
ffmpeg: Fix memset size on ctts_data in mov_read_trun() (round 2) The allocated size of sc->ctts_data is (st->nb_index_entries + entries) * sizeof(*sc->ctts_data). The size to memset at offset sc->ctts_data + sc->ctts_count should be (st->nb_index_entries + entries - sc->ctts_count) * sizeof(*sc->ctts_data)) The current code missed |entries| I believe, which was introduced in https://patchwork.ffmpeg.org/patch/5541/. However, after offline discussion, it seems the original code is much more clear to read (before https://patchwork.ffmpeg.org/patch/5541/). Hence this CL revert the memset logic to it's previous state by remembering the |old_ctts_allocated_size|, and only memset the newly allocated entries. TBRemail@example.com BUG=812567 Change-Id: Ibe94c7138e5818bfaae76866bfa6619a9b8a2b6b Reviewed-on: https://chromium-review.googlesource.com/934925 Reviewed-by: Dale Curtis <firstname.lastname@example.org> Reviewed-on: https://chromium-review.googlesource.com/938142 Reviewed-by: Xiaohan Wang <email@example.com>
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
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 a mean to alter decoded Audio and Video through chain of filters.
libavdeviceprovides an abstraction to access capture and playback devices.
libswresampleimplements audio mixing and resampling routines.
libswscaleimplements color conversion and scaling routines.
The offline documentation is available in the doc/ directory.
Coding examples are available in the doc/examples directory.
FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.
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.