cce3e0a49f 
								
							
								 
							
						 
						
							
							
								
								Move av_fast_{m,re}alloc from lavc to lavu.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d433e1aefa 
								
							
								 
							
						 
						
							
							
								
								mem: Make av_strdup allocate using av_realloc  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								67e285ceca 
								
							
								 
							
						 
						
							
							
								
								mem: Handle av_reallocp(..., 0) properly  
							
							Previously this did a double free (and returned an error).
Reported-by: Justin Ruggles
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3feb3d6ce4 
								
							
								 
							
						 
						
							
							
								
								mem: Introduce av_reallocp  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3e6e8f06c 
								
							
								 
							
						 
						
							
							
								
								mem: Do not check unsigned values for negative size  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b634b36fce 
								
							
								 
							
						 
						
							
							
								
								mem: Improve documentation wording and spelling  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fc962d4e7a 
								
							
								 
							
						 
						
							
							
								
								mem: Add av_realloc_array and av_reallocp_array  
							
							These help avoiding overflows and simplify error handling.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f935aca44c 
								
							
								 
							
						 
						
							
							
								
								av_memcpy_backptr: avoid an infinite loop for back = 0  
							
							CC:libav-stable@libav.org 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb45553f57 
								
							
								 
							
						 
						
							
							
								
								Remove pointless #undefs of previously forbidden functions.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a606c830a 
								
							
								 
							
						 
						
							
							
								
								av_memcpy_backptr: optimise some special cases  
							
							- 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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5bac2d0c30 
								
							
								 
							
						 
						
							
							
								
								avutil: Move memcpy_backptr() to mem.c  
							
							The function is used elsewhere and does not belong with the LZO code. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5532cf3178 
								
							
								 
							
						 
						
							
							
								
								avutil/mem: K&R formatting cosmetics  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								620b1e7e98 
								
							
								 
							
						 
						
							
							
								
								mem: Don't abort on av_malloc(0) in debug mode  
							
							This makes the behaviour consistent between debug and release mode.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be1a839ca6 
								
							
								 
							
						 
						
							
							
								
								mem: add support for _aligned_malloc() as found on Windows  
							
							The check uses check_func_header, since this function is
conditionally available depending on the targeted MSVCRT
version.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14f063d294 
								
							
								 
							
						 
						
							
							
								
								mem: Consistently return NULL for av_malloc(0)  
							
							Plain POSIX malloc(0) is allowed to return either NULL or a
non-NULL pointer. The calling code should be ready to handle
a NULL return as a correct return (instead of a failure) if the size
to allocate was 0 - this makes sure the condition is handled
in a consistent way across platforms.
This also avoids calling posix_memalign(&ptr, 32, 0) on OS X,
which returns an invalid pointer (a non-NULL pointer that causes
crashes when passed to av_free).
Abort in debug mode, to help track down issues related to
incorrect handling of this case.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7181c4edee 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Remove extra newlines at EOF  
							
							
								
							
							
						 
						13 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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