9eb0d8bab1 
								
							
								 
							
						 
						
							
							
								
								fifo: Make writes atomic.  
							
							Prior to this a X bytes write could be seen as less than X bytes being
available if the check was done at an unfortunate moment.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1717ba0cdd 
								
							
								 
							
						 
						
							
							
								
								fifo: add FIFO API test program, and fate test  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2e81bb5e92 
								
							
								 
							
						 
						
							
							
								
								fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1b29223e6 
								
							
								 
							
						 
						
							
							
								
								fifo: apply misc cosmetic fixes  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1735440773 
								
							
								 
							
						 
						
							
							
								
								fifo: use av_freep()  
							
							With this change libavutil uses av_freep() everywhere where it makes sense.
Remaining av_free() use in it has the used pointer become inaccessible quickly
soo zeroing makes no sense.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fc323a5480 
								
							
								 
							
						 
						
							
							
								
								Clarify non constness of src in av_fifo_generic_write()  
							
							Originally committed as revision 21997 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b09db3522 
								
							
								 
							
						 
						
							
							
								
								Implement av_fifo_space().  
							
							Patch by Olivier Guilyardi list et samalyse DOT c0m.
Originally committed as revision 18321 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3898eed890 
								
							
								 
							
						 
						
							
							
								
								Reorder arguments for av_fifo_generic_read to be more logical and  
							
							consistent with av_fifo_generic_write.
Originally committed as revision 17914 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								32b936d0c3 
								
							
								 
							
						 
						
							
							
								
								Add av_fifo_reset function to completely reset fifo state, which makes  
							
							it easier to reuse the fifo.
Originally committed as revision 17901 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c900635fd9 
								
							
								 
							
						 
						
							
							
								
								indent  
							
							Originally committed as revision 17897 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe4032b66a 
								
							
								 
							
						 
						
							
							
								
								Remove more functions disabled by major version bump.  
							
							Originally committed as revision 17876 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c957c85426 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of the replaced av_fifo_read by av_fifo_generic_read  
							
							Originally committed as revision 17873 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cddcf8c60f 
								
							
								 
							
						 
						
							
							
								
								Remove av_fifo_read, API is already broken and major version will be bumped soon.  
							
							Originally committed as revision 17870 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41dd680dd8 
								
							
								 
							
						 
						
							
							
								
								Allocate AVFifoBuffer through the fifo API to reduce future API/ABI issues.  
							
							Yes this breaks ABI/API but ive already broken it and will bump avutil major
soon.
Originally committed as revision 17869 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a936475949 
								
							
								 
							
						 
						
							
							
								
								Comments to indicate where memory barriers may be needed.  
							
							Originally committed as revision 17867 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a71e78ce4 
								
							
								 
							
						 
						
							
							
								
								Try to fix the 1 byte cannot be used issue.  
							
							Originally committed as revision 17865 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								5090122f90 
								
							
								 
							
						 
						
							
							
								
								Drop deprecated av_fifo_write function with the next libavutil version bump.  
							
							Originally committed as revision 16782 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b76e3424ca 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: remove a redundant and misplaced doxy.  
							
							Originally committed as revision 14856 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8e2b2ef17 
								
							
								 
							
						 
						
							
							
								
								Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.  
							
							Originally committed as revision 14855 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8257b835cf 
								
							
								 
							
						 
						
							
							
								
								Implement av_fifo_realloc2().  
							
							Originally committed as revision 14846 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fa3b98182d 
								
							
								 
							
						 
						
							
							
								
								Ensure that one can store X bytes in a fifo of size X.  
							
							Fixed issue417.
Originally committed as revision 13405 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0871ae1a93 
								
							
								 
							
						 
						
							
							
								
								Make av_fifo*_read() ignore the available amount of data.  
							
							This is more efficient as in practice the check is redundant most of the
time. Callers which do not know if enough data is available have to check
it with av_fifo_size(). Doing the check in *read() means the caller has
no choice to skip the check when its known to be redundant.
Also the return value was never documented in a public header so
changing it should not break the API. Besides this fixes the case where
read() failed on a 100% full fifo.
Originally committed as revision 13404 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								95c76e1180 
								
							
								 
							
						 
						
							
							
								
								cosmetics (by Björn Axelsson)  
							
							Originally committed as revision 12774 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								49cec1998a 
								
							
								 
							
						 
						
							
							
								
								Add a generic write function to av_fifo.  
							
							Patch by Björn Axelsson: bjorn axelsson intinor se
Original thread: [FFmpeg-devel] [RFC][PATCH] av_fifo_write_from_bytestream()
Date: 04/03/2008 12:14 PM
Originally committed as revision 12773 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50b4468598 
								
							
								 
							
						 
						
							
							
								
								change while loops to do-while as the condition is true the first time and the check just wastes cpu cycles  
							
							Originally committed as revision 7576 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4497712f09 
								
							
								 
							
						 
						
							
							
								
								simpler branch structure in init (16 bytes smaller object file)  
							
							Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be65b41f90 
								
							
								 
							
						 
						
							
							
								
								doxygenize  
							
							Originally committed as revision 7574 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3da97cfdfc 
								
							
								 
							
						 
						
							
							
								
								avoid code duplication  
							
							Originally committed as revision 7573 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0726982cdb 
								
							
								 
							
						 
						
							
							
								
								better to set things to NULL instead of random in case of out of mem  
							
							Originally committed as revision 7572 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								96e39edc59 
								
							
								 
							
						 
						
							
							
								
								simplify av_fifo_realloc()  
							
							Originally committed as revision 7571 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								765d4f3b4a 
								
							
								 
							
						 
						
							
							
								
								remove near duplicate function  
							
							Originally committed as revision 7570 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								870a12d1c2 
								
							
								 
							
						 
						
							
							
								
								simplify  
							
							Originally committed as revision 7569 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f81b99b82b 
								
							
								 
							
						 
						
							
							
								
								simplify  
							
							Originally committed as revision 7568 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5a478f65d 
								
							
								 
							
						 
						
							
							
								
								* Moving FifoBuffer out of libavformat/avformat.h and  
							
							libavformat/utils.c into libavutil
Originally committed as revision 6310 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago