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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-20Merge commit '4fb311c804098d78e5ce5f527f9a9c37536d3a08'Clément Bœsch
* commit '4fb311c804098d78e5ce5f527f9a9c37536d3a08': Drop memalign hack Merged, as this may indeed be uneeded since 46e3936fb04d06550151e667357065e3f646da1a. Merged-by: Clément Bœsch <u@pkh.me>
2016-09-03Drop memalign hackDiego Biurrun
It no longer serves a useful purpose.
2016-07-31dynarray: Change AV_ to FF_ for AV_DYNARRAY_ADDTimothy Gu
The header is not installed and the macro isn't used outside libavutil, so it is obviously privat to libavutil. Make the name reflect that.
2016-07-28avutil/mem: fix memleakZhao Zhili
The original code assumes av_realloc() will free ptr if size is zero. The assumes is incorrect now. 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-07-13Factor duplicated ff_fast_malloc() out into mem_internal.hMichael Niedermayer
internal.h is difficult to use due to circular dependancies mem.h is a public header ff_* is not public Alternative solutions probably are possible too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11avutil/mem: Fix potential overflow in overallocation codeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-05-10libavutil/mem: use size_t for the length in av_strdup()Michael Niedermayer
the string length is not constrained to INT_MAX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-03avutil/mem: replace remaining void **/*** casts by memcpy()Michael Niedermayer
This is similar to 60392480181f24ebf3ab48d8ac3614705de90152 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-01Merge commit '60392480181f24ebf3ab48d8ac3614705de90152'Michael Niedermayer
* commit '60392480181f24ebf3ab48d8ac3614705de90152': mem: fix pointer pointer aliasing violations Conflicts: libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-01mem: fix pointer pointer aliasing violationsRémi Denis-Courmont
This uses explicit memory copying to read and write pointer to pointers of arbitrary object types. This works provided that the architecture uses the same representation for all pointer types (the previous code made that assumption already anyway). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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-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>
2014-03-23avutil/mem: avoid using intptr_t to access void* in av_dynarray_add()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-22lavu/mem: reimplement the dynarray functions with the macro.Nicolas George
Signed-off-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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-17Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: mem: Make av_strdup allocate using av_realloc Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-16mem: Make av_strdup allocate using av_reallocMartin Storsjö
This makes sure that pointers from av_strdup are reallocable, which is used in av_dict_set if the AV_DICT_APPEND flag is set. Nothing should rely on pointers from av_strdup being aligned. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-21Merge commit '67e285ceca1cb602a5ab87010b30d904527924fe'Michael Niedermayer
* commit '67e285ceca1cb602a5ab87010b30d904527924fe': mem: Handle av_reallocp(..., 0) properly Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-20mem: Handle av_reallocp(..., 0) properlyMartin Storsjö
Previously this did a double free (and returned an error). Reported-by: Justin Ruggles Signed-off-by: Martin Storsjö <martin@martin.st>
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-06Merge commit 'c3e6e8f06c42499bd020fd0b37f9542150e6067b'Michael Niedermayer
* commit 'c3e6e8f06c42499bd020fd0b37f9542150e6067b': mem: Do not check unsigned values for negative size Conflicts: libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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: Do not check unsigned values for negative sizeDiego Biurrun
2013-09-05mem: Improve documentation wording and spellingDiego Biurrun
2013-08-09avutil/mem: Fix flipped conditionMichael Niedermayer
Fixes return code and later null pointer dereference Found-by: Laurent Butti <laurentb@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-06-05avutil/mem: simplify av_reallocp_array() by using av_realloc_f()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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-13lavu: define FF_MEMORY_POISON and use itStefano Sabatini
Allow single-place definition of constant used to fill poisoned memory.
2013-05-08lavu/mem: fix potential int overflow and crash in av_dynarray_add()Stefano Sabatini
Also extend documentation accordingly.
2013-05-02avutil/mem: add av_memdup()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-04-27lavu/mem: remove redundant comment from av_dynarray_add()Stefano Sabatini
The function is documented in mem.h.
2013-03-10mem: Fix usage of memalign() on DJGPP.Fabrizio Gennari
Credits to Khusraw of bttr-software.de forum. Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
2013-02-24Merge commit 'f935aca44c674d30e3ed940ef73bbad1228a5855'Michael Niedermayer
* commit 'f935aca44c674d30e3ed940ef73bbad1228a5855': av_memcpy_backptr: avoid an infinite loop for back = 0 4xm: check the return value of read_huffman_tables(). Conflicts: libavcodec/4xm.c libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-23av_memcpy_backptr: avoid an infinite loop for back = 0Anton Khirnov
CC:libav-stable@libav.org
2013-02-22avutil/mem: do a small set of checks for memalign hack before freeing.Michael Niedermayer
These can detect some kinds of memory and or pointer corruptions Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-14mem: minor simplification of the alignment hack codeMichael Niedermayer
Idea-by: wanzhang Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-05Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer
* commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-05Remove pointless #undefs of previously forbidden functions.Anton Khirnov
2012-11-23Merge commit '4a606c830ae664013cea33800094d4d0f4ec62da'Michael Niedermayer
* commit '4a606c830ae664013cea33800094d4d0f4ec62da': av_memcpy_backptr: optimise some special cases mpegvideo: simplify dxy calculation in hpel_motion() build: add rules to generate preprocessed source files Conflicts: Makefile libavutil/mem.c library.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-11-23av_memcpy_backptr: optimise some special casesMans Rullgard
- Add special cases for offsets of 2, 3, or 4 bytes. This means the offset is always >4 in the generic case, allowing 32-bit copies to be used there. - Don't use memcpy() for sizes less than 16 bytes. Signed-off-by: Mans Rullgard <mans@mansr.com>
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