d5ec8ba7f2 
								
							
								 
							
						 
						
							
							
								
								Do not leave positive values undefined when negative are defined as error  
							
							Define positive return values as non errors and leave further meaning undefined
This allows future extensions to use these values
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3627ce2f1d 
								
							
								 
							
						 
						
							
							
								
								aviobuf: Add functions for null buffers  
							
							Null buffers are useful for simulating writing to a real buffer
for the sake of measuring how many bytes are written.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5afe1d2791 
								
							
								 
							
						 
						
							
							
								
								avio: Add const qualifiers to ffio_read_indirect  
							
							This provides at least some protection against potential accidental
corruption of AVIO buffer workspace.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								daf1e0d3de 
								
							
								 
							
						 
						
							
							
								
								avio: Add an internal function for reading without copying  
							
							As long as there is enough contiguous data in the avio buffer,
just return a pointer to it instead of copying it to the caller
provided buffer.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								186ec17843 
								
							
								 
							
						 
						
							
							
								
								avformat/aviobuf: Add ffio_ensure_seekback()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								523c7bd23c 
								
							
								 
							
						 
						
							
							
								
								misc typo, style and wording fixes  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								e39eeb10d1 
								
							
								 
							
						 
						
							
							
								
								lavf: split out ffio_limit()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								153382e1b6 
								
							
								 
							
						 
						
							
							
								
								multiple inclusion guard cleanup  
							
							Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								c486dade95 
								
							
								 
							
						 
						
							
							
								
								avio: make URLContext internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d6bbe76124 
								
							
								 
							
						 
						
							
							
								
								avio: move two ff_udp_* functions from avio_internal to url.h  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1305d93c42 
								
							
								 
							
						 
						
							
							
								
								avio: deprecate av_url_read_seek  
							
							It's not used anywhere internally.
Salvage its documentation for ffio_read_seek. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fa104e14ab 
								
							
								 
							
						 
						
							
							
								
								avio: deprecate av_url_read_pause  
							
							It's not used anywhere internally.
Salvage its documentation for ffio_read_pause. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								b64030f26d 
								
							
								 
							
						 
						
							
							
								
								avio: make get_checksum() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d09cc22d9c 
								
							
								 
							
						 
						
							
							
								
								avio: move ff_crc04C11DB7_update() from avio.h -> avio_internal.h  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c4427a75d 
								
							
								 
							
						 
						
							
							
								
								avio: make init_checksum() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ec153bb66 
								
							
								 
							
						 
						
							
							
								
								avio: make udp_set_remote_url/get_local_port internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								491653ed90 
								
							
								 
							
						 
						
							
							
								
								avio: cosmetics - nicer vertical alignment.  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								933e90a69a 
								
							
								 
							
						 
						
							
							
								
								avio: make av_url_read_fseek/fpause internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59f65d9579 
								
							
								 
							
						 
						
							
							
								
								avio: make url_setbufsize internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4839c192de 
								
							
								 
							
						 
						
							
							
								
								lavf: move ff_get_v from avio.h to avio_internal.h  
							
							And rename it to ffio_read_varlen.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8bc86d47e 
								
							
								 
							
						 
						
							
							
								
								avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h  
							
							also change its prefix to ffio
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit f1ef2cd9ed 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1ef2cd9ed 
								
							
								 
							
						 
						
							
							
								
								avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h  
							
							also change its prefix to ffio
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a960576f20 
								
							
								 
							
						 
						
							
							
								
								avio: fix fourcc if any character is >=0x80.  
							
							Fixes issue 2638.
(cherry picked from commit fd085bc082 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd085bc082 
								
							
								 
							
						 
						
							
							
								
								avio: fix fourcc if any character is >=0x80.  
							
							Fixes issue 2638. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								324429309e 
								
							
								 
							
						 
						
							
							
								
								lavf: use a new ffio_wfourcc macro instead of put_tag() where possible  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 0abdb29317 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0abdb29317 
								
							
								 
							
						 
						
							
							
								
								lavf: use a new ffio_wfourcc macro instead of put_tag() where possible  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2df9d0008e 
								
							
								 
							
						 
						
							
							
								
								avio: make put_nbyte internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 0ac8e2bf2b 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4e321d9c2 
								
							
								 
							
						 
						
							
							
								
								avio: make get_partial_buffer internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b3db9ceef1 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ac8e2bf2b 
								
							
								 
							
						 
						
							
							
								
								avio: make put_nbyte internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b3db9ceef1 
								
							
								 
							
						 
						
							
							
								
								avio: make get_partial_buffer internal.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae99313aa5 
								
							
								 
							
						 
						
							
							
								
								avio: move init_put_byte() to a new private header and rename it  
							
							init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e731b8d872 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								471fe57e1a 
								
							
								 
							
						 
						
							
							
								
								avio: rename ByteIOContext to AVIOContext.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit ae628ec1fd 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae628ec1fd 
								
							
								 
							
						 
						
							
							
								
								avio: rename ByteIOContext to AVIOContext.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c844520e73 
								
							
								 
							
						 
						
							
							
								
								10l, fix prototype  
							
							Originally committed as revision 16625 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d298412062 
								
							
								 
							
						 
						
							
							
								
								export ff_avc_parse_nal_units_buf  
							
							Originally committed as revision 16624 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a97772b166 
								
							
								 
							
						 
						
							
							
								
								return size written in ff_avc_parse_nal_units  
							
							Originally committed as revision 16622 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a63a676ec 
								
							
								 
							
						 
						
							
							
								
								Do not reallocate AVPacket's data when muxing a packet  
							
							Originally committed as revision 16616 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								987903826b 
								
							
								 
							
						 
						
							
							
								
								Globally rename the header inclusion guard names.  
							
							Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.'  to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".
Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d2526d1b9 
								
							
								 
							
						 
						
							
							
								
								Add missing FFMPEG_ prefix to multiple inclusion guard.  
							
							Originally committed as revision 15047 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d937cd0ed2 
								
							
								 
							
						 
						
							
							
								
								const  
							
							Originally committed as revision 12145 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b973f9ad7e 
								
							
								 
							
						 
						
							
							
								
								Make avc_find_startcode non-static, so that it can be used from other  
							
							files (and add the ff_ prefix, to avoid polluting the namespace)
Originally committed as revision 11532 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ab3f71b60 
								
							
								 
							
						 
						
							
							
								
								add a ff_ prefix to newly exported functions from avc.c  
							
							Originally committed as revision 11511 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1bd2d763d4 
								
							
								 
							
						 
						
							
							
								
								Move isom_write_avcc() and related functions into a separate file.  
							
							Originally committed as revision 11498 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b21bdabe4 
								
							
								 
							
						 
						
							
							
								
								Add FFMPEG_ prefix to all multiple inclusion guards.  
							
							Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago