8a34b85fa8 
								
							
								 
							
						 
						
							
							
								
								avio: detect implicit truncation by assert in avio_w*  
							
							This check is somewhat more lenient as would be ideal because we dont
know if the input is signed or unsigned
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a3fb3a670e 
								
							
								 
							
						 
						
							
							
								
								avio: avoid implicit truncation in avio_w*  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b760ffdd07 
								
							
								 
							
						 
						
							
							
								
								aviobuf: Remove a senseless ifdef in avio_seek  
							
							This seemed to assume that one never used writing avio unless
muxers or networking was enabled.
This ifdef is a remnant since 8fa641f8 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								120b38b966 
								
							
								 
							
						 
						
							
							
								
								avio: redesign ffio_rewind_with_probe_data()  
							
							This prevents a double free
Fixes CID718285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b522000e9b 
								
							
								 
							
						 
						
							
							
								
								avio: introduce avio_closep  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d1203f063 
								
							
								 
							
						 
						
							
							
								
								avio: flush the internal buffer in avio_close()  
							
							This is consistent with stdio, and thus what people would naturally
expect. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3093939077 
								
							
								 
							
						 
						
							
							
								
								avio: make avio_close NULL the freed buffer  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b9e44868b 
								
							
								 
							
						 
						
							
							
								
								lavf: fix avio statistics for packets directly read without the buffer.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								725213545d 
								
							
								 
							
						 
						
							
							
								
								lavf/avio: flush internal buffer when calling avio_close()  
							
							This seems the expected behavior. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c49e0d2cdd 
								
							
								 
							
						 
						
							
							
								
								aviobuf: Fix warning about discarded qualifier  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b22ecbc6a5 
								
							
								 
							
						 
						
							
							
								
								cosmetics: various spelling fixes  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47f8303069 
								
							
								 
							
						 
						
							
							
								
								lavf/aviobuf: use av_assert()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11153a9371 
								
							
								 
							
						 
						
							
							
								
								avio: Collect and print statistics of bytes read & seeks  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1e146a2d1 
								
							
								 
							
						 
						
							
							
								
								avio: make avio_close(NULL) a no-op  
							
							Its behaviour in line with ffurl_close(NULL). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a45605a1ba 
								
							
								 
							
						 
						
							
							
								
								Add AVIO_FLAG_DIRECT.  
							
							Allows avoiding the buffer when using avio read, write and seek functions.
When using the ffmpeg executable -avioflags direct can be used to enable
this mode for input files, but has no effect on output files.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a76a2ffe9d 
								
							
								 
							
						 
						
							
							
								
								libavformat: Fix several "incompatible pointer type" warnings.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2439f2ca82 
								
							
								 
							
						 
						
							
							
								
								lavf: remove disabled FF_API_OLD_AVIO cruft  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3dc99a18d4 
								
							
								 
							
						 
						
							
							
								
								cosmetics: drop some pointless parentheses  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2d1d21629 
								
							
								 
							
						 
						
							
							
								
								avio: exit early in fill_buffer without read_packet  
							
							Fixes an invalid free() with ass in avi. The sample in bug 98 passes
parts of AVPacket.data as buffer for the AVIOContext. Since the packet
is quite large fill_buffer tries to reallocate the buffer before doing
nothing. Fixes bug 98. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1dee0aca74 
								
							
								 
							
						 
						
							
							
								
								avio: add avio_open2, taking an interrupt callback and options  
							
							The interrupt callback has to be passed in during opening (setting it
after opening isn't enough), since a blocking open couldn't be
interrupted otherwise.
Options are passed down to procotols and also need to be available
during open() in most cases.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ddffc2fdc3 
								
							
								 
							
						 
						
							
							
								
								avio: add support for passing options to protocols.  
							
							Not used anywhere yet, support for passing options from avio_open() will
follow. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6f1b7b3944 
								
							
								 
							
						 
						
							
							
								
								avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc  
							
							Change all uses of these function to pass the relevant
callback on. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								124e28847b 
								
							
								 
							
						 
						
							
							
								
								Remove some stray unnecessary ffmpeg references.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ab2940691b 
								
							
								 
							
						 
						
							
							
								
								avio: Check for invalid buffer length.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								247a1dc847 
								
							
								 
							
						 
						
							
							
								
								aviobuf: Replace av_realloc by av_realloc_f when relevant.  
							
							Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3bec4cd13 
								
							
								 
							
						 
						
							
							
								
								avio: don't replicate avio_alloc_context functionality.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9e2dabed4a 
								
							
								 
							
						 
						
							
							
								
								avio: check AVIOContext malloc failure  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a3ffe0eb76 
								
							
								 
							
						 
						
							
							
								
								Revert "Fix url_fopen() flag values."  
							
							No longer needed after martins change to the values.
Though this would have been nicer ABI wise but iam too lazy to maintain this difference
This reverts commit 183401b924 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								183401b924 
								
							
								 
							
						 
						
							
							
								
								Fix url_fopen() flag values.  
							
							Reported by: Luca Abeni
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3323a1cbd 
								
							
								 
							
						 
						
							
							
								
								Fix some passing argument from incompatible pointer type warnings.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59d96941f0 
								
							
								 
							
						 
						
							
							
								
								avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols  
							
							Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								468644f6c1 
								
							
								 
							
						 
						
							
							
								
								lavf: remove FF_API_URL_RESETBUF cruft  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff1ec0c3f8 
								
							
								 
							
						 
						
							
							
								
								avio: undeprecate av_url_read_fseek/fpause under nicer names  
							
							It seems their replacements won't be ready anytime soon. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f87b1b373a 
								
							
								 
							
						 
						
							
							
								
								avio: AVIO_ prefixes for URL_ open flags.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								668438a31e 
								
							
								 
							
						 
						
							
							
								
								avio: always compile dyn_buf functions  
							
							Fixes build with --disable-muxers --disable-network.
Thanks to Hendrik Leppkes for noticing. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5958df341d 
								
							
								 
							
						 
						
							
							
								
								avio: deprecate url_max_packet_size().  
							
							URLContext.max_packet_size should be used directly. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e52a9145c8 
								
							
								 
							
						 
						
							
							
								
								avio: make url_close() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58a48c6511 
								
							
								 
							
						 
						
							
							
								
								avio: make url_seek() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								925e908bc7 
								
							
								 
							
						 
						
							
							
								
								avio: make url_write() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bc371aca46 
								
							
								 
							
						 
						
							
							
								
								avio: make url_read() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0589da0aa5 
								
							
								 
							
						 
						
							
							
								
								avio: make url_open() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02fd687bbe 
								
							
								 
							
						 
						
							
							
								
								Only make buffer smaller in fill_buffer() if read_packet() is set.  
							
							Fixes a possible invalid free(). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8bea72f7eb 
								
							
								 
							
						 
						
							
							
								
								avio: simplify url_open_dyn_buf_internal by using avio_alloc_context()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								724f6a0fa4 
								
							
								 
							
						 
						
							
							
								
								avio: make url_fdopen internal.  
							
							The unbuffered URLContext API will be made private, so there's no point
in this function being public. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								403ee835e7 
								
							
								 
							
						 
						
							
							
								
								avio: make url_open_dyn_packet_buf internal.  
							
							It doesn't look fit to be a part of the public API.
Adding a temporary hack to ffserver to be able to use it, should be
cleaned up when somebody is up for it. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6dc7d80de7 
								
							
								 
							
						 
						
							
							
								
								avio: avio_ prefix for url_close_dyn_buf  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b92c545282 
								
							
								 
							
						 
						
							
							
								
								avio: avio_ prefix for url_open_dyn_buf  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8978fedaee 
								
							
								 
							
						 
						
							
							
								
								avio: introduce an AVIOContext.seekable field  
							
							Use it instead of url_is_streamed and AVIOContext.is_streamed. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b64030f26d 
								
							
								 
							
						 
						
							
							
								
								avio: make get_checksum() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c4427a75d 
								
							
								 
							
						 
						
							
							
								
								avio: make init_checksum() internal.  
							
							
								
							
							
						 
						14 years ago