fc11927890 
								
							
								 
							
						 
						
							
							
								
								mem: fix memalign hack av_realloc()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5cd754bca2 
								
							
								 
							
						 
						
							
							
								
								Introduce av_realloc_f.  
							
							av_realloc_f helps avoiding memory-leaks in typical uses of realloc.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ccecab4a0d 
								
							
								 
							
						 
						
							
							
								
								Add av_calloc() helper.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a39bd458a0 
								
							
								 
							
						 
						
							
							
								
								mem: Trying to workaround posix_memalign() bug on OSX  
							
							This patch is based on a patch by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b4c0be558 
								
							
								 
							
						 
						
							
							
								
								mem: define the MAX_MALLOC_SIZE constant and use it in place of INT_MAX  
							
							This makes re-dimensionating the constant simpler, since now it is
defined only in one place. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								518cdff81f 
								
							
								 
							
						 
						
							
							
								
								Fix posix_memalign() usage when libavutil is compiled outside FFmpeg.  
							
							To use posix_memalign() "#define _XOPEN_SOURCE 600" have to be defined.
FFmpeg configure defines it from the command line through config.mak,
but when libavutil is used outside of FFmpeg the define is missing.
Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								08675bb399 
								
							
								 
							
						 
						
							
							
								
								mem: Choose alignment at compile time depending on AVX enabledness.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c8981edd90 
								
							
								 
							
						 
						
							
							
								
								Only add 1 byte to av_malloc(0) when it actually returned NULL  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								91ff05f6ac 
								
							
								 
							
						 
						
							
							
								
								Make av_realloc(0) behave like our av_malloc(0)  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35ceaa7376 
								
							
								 
							
						 
						
							
							
								
								Move ff_dynarray_add to lavu and make it public.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5a36783bc4 
								
							
								 
							
						 
						
							
							
								
								Fix all malloc(0) issues  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								13dfce3d44 
								
							
								 
							
						 
						
							
							
								
								Increase alignment of av_malloc() as needed by AVX ASM.  
							
							Signed-off-by: Reinhard Tartler <siretart@tauware.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								490a022d86 
								
							
								 
							
						 
						
							
							
								
								lavu: remove misc disabled cruft  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0c8eb72ec5 
								
							
								 
							
						 
						
							
							
								
								Avoid pointless check before calling free  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit dc75d6dbf2 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc75d6dbf2 
								
							
								 
							
						 
						
							
							
								
								Avoid pointless check before calling free  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b47541c7a3 
								
							
								 
							
						 
						
							
							
								
								Change the argument of memory allocation functions from unsigned int to size_t  
							
							with the next major bump in libavutil.
Originally committed as revision 25871 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba87f0801d 
								
							
								 
							
						 
						
							
							
								
								Remove explicit filename from Doxygen  @file  commands.  
							
							Passing an explicit filename to this command is only necessary if the
documentation in the @file  block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ae406856f 
								
							
								 
							
						 
						
							
							
								
								Add --malloc-prefix to apply a prefix to malloc, free etc  
							
							This makes it easy to use a replacement allocator instead of the
system default one.
Originally committed as revision 21509 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a90de11dba 
								
							
								 
							
						 
						
							
							
								
								Check return value of posix_memalign and explicitly set pointer to NULL if it  
							
							fails, patch by Patrik Kullman, patrik yes nu.
Originally committed as revision 17495 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bad5537e2c 
								
							
								 
							
						 
						
							
							
								
								Use full internal pathname in doxygen  @file  directives.  
							
							Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89c9ff504b 
								
							
								 
							
						 
						
							
							
								
								spelling/grammar/consistency review part I  
							
							Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e60e93355 
								
							
								 
							
						 
						
							
							
								
								10l: Add #undefs for system free/malloc/realloc, which must be used here.  
							
							Originally committed as revision 16794 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								77652a6aaf 
								
							
								 
							
						 
						
							
							
								
								C files should #include the header files of the same name.  
							
							Originally committed as revision 16792 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								692c315e3a 
								
							
								 
							
						 
						
							
							
								
								Do not #include common.h without necessity.  
							
							This eliminates the need to work around common.h overriding certain system
functions which are required in this header.
Originally committed as revision 16776 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfcb6b56f9 
								
							
								 
							
						 
						
							
							
								
								Directly #include a bunch of indirectly #included headers.  
							
							Originally committed as revision 16748 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								406792e7b0 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Remove pointless period after copyright statement non-sentences.  
							
							Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b250f9c66d 
								
							
								 
							
						 
						
							
							
								
								Change semantic of CONFIG_*, HAVE_* and ARCH_*.  
							
							They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f91cdce0b 
								
							
								 
							
						 
						
							
							
								
								Use posix_memalign() if available.  
							
							Originally committed as revision 16488 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19757f6169 
								
							
								 
							
						 
						
							
							
								
								indent  
							
							Originally committed as revision 13251 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fdf35f265a 
								
							
								 
							
						 
						
							
							
								
								make av_strdup(NULL) return NULL  
							
							Originally committed as revision 13250 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ed0d3048c0 
								
							
								 
							
						 
						
							
							
								
								Merge declaratio and initialization.  
							
							Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11362767b8 
								
							
								 
							
						 
						
							
							
								
								Merge declaration and initialization.  
							
							Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2cab640129 
								
							
								 
							
						 
						
							
							
								
								typo fixes  
							
							Originally committed as revision 12428 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ce6892373 
								
							
								 
							
						 
						
							
							
								
								misc spelling fixes  
							
							Originally committed as revision 12410 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								90d30570d8 
								
							
								 
							
						 
						
							
							
								
								Avoid void*-arithmetic.  
							
							Patch by mvplayer: ffmpeg gmail com
Originally committed as revision 11932 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7f654692a 
								
							
								 
							
						 
						
							
							
								
								Move unaltered av_freep() comments to the header file.  
							
							Originally committed as revision 8253 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f690ee715d 
								
							
								 
							
						 
						
							
							
								
								Move unaltered av_free() comments to the header file.  
							
							Originally committed as revision 8252 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d6def91a3b 
								
							
								 
							
						 
						
							
							
								
								Move unaltered av_realloc() comments to the header file.  
							
							Originally committed as revision 8251 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a07029916 
								
							
								 
							
						 
						
							
							
								
								Move unaltered av_malloc() comments to the header file.  
							
							Originally committed as revision 8250 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eafcac6ac8 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Fix another common typo, dependAnt --> dependEnt.  
							
							Originally committed as revision 8114 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ddbcae667 
								
							
								 
							
						 
						
							
							
								
								rename MEMALIGN_HACK to CONFIG_MEMALIGN_HACK, use common code in configure  
							
							Originally committed as revision 7025 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b78e7197a8 
								
							
								 
							
						 
						
							
							
								
								Change license headers to say 'FFmpeg' instead of 'this program/this library'  
							
							and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79e47000c8 
								
							
								 
							
						 
						
							
							
								
								move memory functions from avcodec to avutil  
							
							Originally committed as revision 6330 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a7c36af54 
								
							
								 
							
						 
						
							
							
								
								revert aligned realloc() changesm this should be identical to r5784  
							
							Originally committed as revision 6008 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								732692d94c 
								
							
								 
							
						 
						
							
							
								
								trying to fix av_realloc()  
							
							Originally committed as revision 5996 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								75c413ae77 
								
							
								 
							
						 
						
							
							
								
								align av_realloc()  
							
							Originally committed as revision 5992 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cea8f6f323 
								
							
								 
							
						 
						
							
							
								
								Move av_malloc(), av_realloc(), and av_free() from libavcodec to libavutil  
							
							Originally committed as revision 5784 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da2e9781bb 
								
							
								 
							
						 
						
							
							
								
								spelling typo  
							
							Originally committed as revision 5633 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a949360163 
								
							
								 
							
						 
						
							
							
								
								* Allocating 16 bytes more for the MEMALIGN_HACK is enough. There's no  
							
							need for 1 more extra byte.
* Checking whether the to be allocated size is larger than INT_MAX,
doesn't assure that size+16 bytes for the MEMALIGN_HACK isn't larger
than INT_MAX.
* malloc might return NULL. Checking for it before using that pointer
seems like a good idea.
Patch by Herve W. H PPP O PPP W PPP aka PPP V+ffmpeg AH gmail PPP com
Original thread:
Date: Jun 29, 2006 1:21 PM
Subject: [Ffmpeg-devel] [PATCH] minor improvements to libavcodec/mem.c
Originally committed as revision 5559 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago