Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-27avutil/mem: Fix invalid use of av_alloc_sizeMark Harris
The alloc_size attribute is valid only on functions that return a pointer. GCC 9 (not yet released) warns about invalid usage: ./libavutil/mem.h:342:1: warning: 'alloc_size' attribute ignored on a function returning int' [-Wattributes] 342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); | ^~~~~~~~~~~~~ Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-19avutil/mem: Correct documentation of av_fast_*alloc(z)Andreas Rheinhardt
The current wording regarding size and min_size is completely wrong and ignores that min_size is indeed only a desired minimal size, not the actually allocated size. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-12-02avutil/mem: Add DECLARE_ASM_ALIGNED macro for DJGPP architecture.Thomas Köppe
The macro was added in 43171a2a738f5114768d34a7278e56e5fde714bc, but I forgot to add it to the DJGPP architecture in that change. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-11-13Fix missing used attribute for inline assembly variablesThomas Köppe
Variables used in inline assembly need to be marked with attribute((used)). Static constants already were, via the define of DECLARE_ASM_CONST. But DECLARE_ALIGNED does not add this attribute, and some of the variables defined with it are const only used in inline assembly, and therefore appeared dead. This change adds a macro DECLARE_ASM_ALIGNED that marks variables as used. This change makes FFMPEG work with Clang's ThinLTO. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-11-12Merge commit '0af8a72174108b9bb482f1073a1e9a3bc258af51'James Almer
* commit '0af8a72174108b9bb482f1073a1e9a3bc258af51': build: Drop support for legacy TI ARM compiler Merged-by: James Almer <jamrial@gmail.com>
2017-10-30Merge commit '04b0f0e371ff81b682274b574fb465ba4395c09f'James Almer
* commit '04b0f0e371ff81b682274b574fb465ba4395c09f': mem: uninline av_malloc(z)_array() Merged-by: James Almer <jamrial@gmail.com>
2017-10-25build: Drop support for legacy TI ARM compilerDiego Biurrun
2017-04-26mem: uninline av_malloc(z)_array()Anton Khirnov
Inlining public functions hardcodes their implementation into the ABI, so it should be avoided unless there is a very good reason for it. No such reason exists in this case.
2017-03-29lavu/mem: clamp alignment to 16 for DJGPPClément Bœsch
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80208
2017-02-02Merge commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5'Clément Bœsch
* commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5': libavutil: Always use some GCC style attributes on clang Merged-by: Clément Bœsch <cboesch@gopro.com>
2016-08-23avutil/mem: remove av_realloc / av_malloc incompatibility warningMichael Niedermayer
memalign() is not guranteed to be compatible with free() or realloc() and for platforms in this category we have --enable-memalign-hack (which should be enabled automatically if such system is detected) Trying to somehow half support systems that can free() memalign memory but not reallocate it seems not worth the amount of work needed to keep 2 then incompatible allocation systems and ensure their seperation. That is unless this would affect a major platform on which we want to avoid the memalign hack code The warnings also cause wasted time and effort as people try to maintain a separation that does not exist currently. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-21mem: Extend and edit DoxygenTimothy Gu
2016-08-03mem: Order function prototypes semanticallyTimothy Gu
2016-07-21libavutil: Always use some GCC style attributes on clangMartin Storsjö
Clang normally disguises as GCC (defining __GNUC__), and thus get all the normal GCC specific attributes. Clang can also work as a drop-in replacement for MSVC, and in these cases, it doesn't define __GNUC__, but defines _MSC_VER instead. Even in these setups, it still supports the GCC style attributes, thus use them, especially where there isn't any MSVC specific version, or where the MSVC specific version doesn't work on clang (for DECLARE_ASM_CONST). Signed-off-by: Martin Storsjö <martin@martin.st>
2016-07-18avutil/mem: fix wrong commentZhao Zhili
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-19avutil/mem: Add av_fast_mallocz()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-17avutil/mem: add av_warn_unused_resultGanesh Ajjanagadde
This adds av_warn_unused_result to functions whose return codes need to be checked. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2014-08-14Merge commit '8ddc32629a6d6be77256694c9e322dde134609f3'Michael Niedermayer
* commit '8ddc32629a6d6be77256694c9e322dde134609f3': mem: add av_strndup() for duplicating substrings Conflicts: libavutil/mem.c libavutil/mem.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-13mem: add av_strndup() for duplicating substringsAnton Khirnov
2014-08-04avutil/mem: document NULL related saftey of av_freep()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-29lavu/mem: add av_dynarray_add_nofree functionLukasz Marek
av_dynarray_add_nofree function have similar functionality as existing av_dynarray_add, but it doesn't deallocate memory on fails. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
2013-11-14Merge commit 'cce3e0a49f0dd030262c28d9c53de0bd2fd909c4'Michael Niedermayer
* commit 'cce3e0a49f0dd030262c28d9c53de0bd2fd909c4': Move av_fast_{m,re}alloc from lavc to lavu. Conflicts: libavcodec/avcodec.h libavcodec/utils.c libavutil/mem.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-14Move av_fast_{m,re}alloc from lavc to lavu.Anton Khirnov
2013-10-26Merge commit 'b284e1ffe343d6697fb950d1ee517bafda8a9844'Michael Niedermayer
* commit 'b284e1ffe343d6697fb950d1ee517bafda8a9844': mem: do not check for negative size Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-26mem: do not check for negative sizeVittorio Giovara
size_t is guaranteed to be unsigned Signed-off-by: Anton Khirnov <anton@khirnov.net>
2013-09-17Merge commit '3feb3d6ce4be0a09a9f8f13d613bed25b523b6e7'Michael Niedermayer
* commit '3feb3d6ce4be0a09a9f8f13d613bed25b523b6e7': mem: Introduce av_reallocp Conflicts: doc/APIchanges libavutil/mem.c libavutil/mem.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-16mem: Introduce av_reallocpLuca Barbato
2013-09-15Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: mem: Document the non-compatibility of av_realloc() and av_malloc() Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-14mem: Document the non-compatibility of av_realloc() and av_malloc()Diego Biurrun
2013-09-06Merge commit 'b634b36fcebfe16b837b6c4044f5d5cb99a75040'Michael Niedermayer
* commit 'b634b36fcebfe16b837b6c4044f5d5cb99a75040': mem: Improve documentation wording and spelling Conflicts: libavutil/mem.c libavutil/mem.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-05mem: Improve documentation wording and spellingDiego Biurrun
2013-09-04Merge commit 'b4ec7a5fee644ad9882e10c097817b65447b8e55'Michael Niedermayer
* commit 'b4ec7a5fee644ad9882e10c097817b65447b8e55': mem: Document the av_realloc family of functions properly Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-04mem: Document the av_realloc family of functions properlyLuca Barbato
realloc() does not accept pointers from memalign().
2013-06-05Merge commit '3b4feac1ec14f861bdd7f494f288f4d8dd7f449e'Michael Niedermayer
* commit '3b4feac1ec14f861bdd7f494f288f4d8dd7f449e': movenc: Keep track of the allocated size for the cluster array mem: Add av_realloc_array and av_reallocp_array Conflicts: doc/APIchanges libavformat/movenc.c libavutil/mem.c libavutil/mem.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-06-04mem: Add av_realloc_array and av_reallocp_arrayMartin Storsjö
These help avoiding overflows and simplify error handling. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-05-13lavu/mem: add av_dynarray2_add()Stefano Sabatini
Based on a patch by Clément Bœsch. See thread: From: Clément Bœsch <ubitux@gmail.com> Subject: [FFmpeg-devel] [PATCH 1/5] lavu: add av_dynarray_alloc_elem(). Date: Sun, 14 Apr 2013 03:07:54 +0200
2013-05-10lavu/mem.h: fix typoStefano Sabatini
2013-05-08lavu/mem: fix potential int overflow and crash in av_dynarray_add()Stefano Sabatini
Also extend documentation accordingly.
2013-05-08lavu/mem: extend documentation for av_dynarray_add()Stefano Sabatini
In particular, mention the fact that the amortized element addition cost is constant.
2013-05-02avutil/mem: add av_memdup()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-25Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: avutil: Make LZO decoder code configure-time selectable avutil: Move memcpy_backptr() to mem.c configure: detect parisc64 automatically configure: detect ppc64 automatically configure: detect mips64 automatically configure: generalise 64-bit test smoothstreamingenc: Don't assume streams start from timestamp 0 Conflicts: configure libavutil/Makefile libavutil/lzo.c libavutil/lzo.h libavutil/mem.c libavutil/mem.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-25avutil: Move memcpy_backptr() to mem.cDiego Biurrun
The function is used elsewhere and does not belong with the LZO code.
2012-10-20Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: configure: Group math functions into a separate variable avutil/mem: K&R formatting cosmetics avutil/lzo: K&R formatting cosmetics Conflicts: configure libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-20avutil/mem: K&R formatting cosmeticsDiego Biurrun
2012-09-10mem: fix typo in check for __ICCMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-08-16Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: Fix even more missing includes after the common.h removal build: Factor out rangecoder dependencies to CONFIG_RANGECODER build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE x86: avcodec: Consistently name all init files Add more missing includes after removing the implicit common.h Add some more missing includes after removing the implicit common.h Don't include common.h from avutil.h rtmp: Automatically compute the hash for SWFVerification Conflicts: configure doc/APIchanges doc/examples/decoding_encoding.c libavcodec/Makefile libavcodec/assdec.c libavcodec/audio_frame_queue.c libavcodec/avpacket.c libavcodec/dv_profile.c libavcodec/dwt.c libavcodec/libtheoraenc.c libavcodec/rawdec.c libavcodec/rv40dsp.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/v210dec.h libavcodec/vc1dsp.c libavcodec/x86/Makefile libavfilter/asrc_anullsrc.c libavfilter/avfilter.c libavfilter/buffer.c libavfilter/formats.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_select.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/version.h libavutil/audioconvert.c libavutil/error.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-15Don't include common.h from avutil.hMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-16Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: configure: Check for CommandLineToArgvW vc1dec: Do not use random pred_flag if motion vector data is skipped vp8: Enclose pthread function calls in ifdefs snow: refactor code to work around a compiler bug in MSVC. vp8: Include the thread headers before using the pthread types configure: Check for getaddrinfo in ws2tcpip.h, too vp8: implement sliced threading vp8: move data from VP8Context->VP8Macroblock vp8: refactor decoding a single mb_row doc: update api changes with the right commit hashes mem: introduce av_malloc_array and av_mallocz_array Conflicts: configure doc/APIchanges libavcodec/vp8.c libavutil/mem.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-07-14mem: introduce av_malloc_array and av_mallocz_arrayLuca Barbato
Both function ease allocating large arrays implementing the overflow check inside it.
2011-12-25mem: add av_max_alloc() to limit the maximum amount that may be allocated in ↵Michael Niedermayer
one piece Signed-off-by: Michael Niedermayer <michaelni@gmx.at>