6796b82407 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils: Only require first packet to be known for all audio and video streams  
							
							It can take a long time before subtitles or data streams show up,
so we shouldn't wait for those before assuming we have all info
for streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6dcbbe34e8 
								
							
								 
							
						 
						
							
							
								
								av_interleave_packet_per_dts: switch noninterleaved flushing logic to max dts.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d64066f6e8 
								
							
								 
							
						 
						
							
							
								
								Prevent double free of side_data when AVFMT_FLAG_KEEP_SIDE_DATA flag is set  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c05042978 
								
							
								 
							
						 
						
							
							
								
								flvdec: Properly decoding in-band metadata packets as data frames.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9243454e31 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils: only run delta_dts_min calculation code when its value is used.  
							
							This should improve speed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								effbeff503 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils: use FFMIN() where possible  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37ed5df5c5 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils: Treat subtitle streams as noninterleaved when 20 seconds have passed without a packet  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aebb56e184 
								
							
								 
							
						 
						
							
							
								
								Replace some commented-out debug printf() / av_log() messages with av_dlog().  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dacd827b81 
								
							
								 
							
						 
						
							
							
								
								Rename find_program_from_stream to av_find_program_from_stream and add it to avformat.h  
							
							Also extend the functionality to use the last found program to start the search
after that program.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								941bb552c6 
								
							
								 
							
						 
						
							
							
								
								Fix memory corruption in case of memory allocation failure in av_probe_input_buffer()  
							
							Reported-by: Tanami Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e6029f98a 
								
							
								 
							
						 
						
							
							
								
								lavf utils: Fix bad indentation.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aeba058340 
								
							
								 
							
						 
						
							
							
								
								lavf: warn when a parser is needed and not found.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7bdc5de33d 
								
							
								 
							
						 
						
							
							
								
								Autodetect LOAS in transport streams.  
							
							Fixes ticket 365. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								48f9e457ea 
								
							
								 
							
						 
						
							
							
								
								lavf: add avformat_query_codec().  
							
							It allows to check if a given codec can be written into a container. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73e8e8dbf9 
								
							
								 
							
						 
						
							
							
								
								lavf: Add an option to discard corrupted frames  
							
							Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ef953e84f 
								
							
								 
							
						 
						
							
							
								
								probe: Fix insane flow control.  
							
							A loop control variable was shadowed inside the loop and never updated. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fdd130a213 
								
							
								 
							
						 
						
							
							
								
								prefer "SAR" over "PAR" in av_dump_format()  
							
							"SAR" (Sample Aspect Ratio) is globally preferred over "PAR" (Pixel
Aspect Ratio), although the two terms share the same semantics.
For example the corresponding AVStream field is called
sample_aspect_ratio, and libavfilter has a filter named setsar.
Therefore prefer the term "SAR" over "PAR" in the
libavformat/utils.c:dump_stream_format() and avcodec_string() output
for avoiding confusion. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2962049ac3 
								
							
								 
							
						 
						
							
							
								
								muxer opts: fix avdict use in case of early private context alloc  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25dfda7f31 
								
							
								 
							
						 
						
							
							
								
								lavf: rename enc variable in utils.c:has_codec_parameters()  
							
							Rename it to "avctx", the old name was confusing as the function is
used also with decoder contexts.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3bb71914b 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: drop av_ prefixes from static functions.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5a819c5e23 
								
							
								 
							
						 
						
							
							
								
								avformat_open_input(): Add braces to shut up gcc warning.  
							
							libavformat/utils.c:599: warning: missing braces around initializer
libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’) 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e358f7ee90 
								
							
								 
							
						 
						
							
							
								
								lavf: fix invalid reads in avformat_find_stream_info()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								13551ad1e3 
								
							
								 
							
						 
						
							
							
								
								lavf: fix segfault in av_open_input_stream()  
							
							ic is NULL in case of error. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a58858d60d 
								
							
								 
							
						 
						
							
							
								
								lavf: Cleanup try_decode_frame() logic.  
							
							This fixes AAC playback in ffplay. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6379900c53 
								
							
								 
							
						 
						
							
							
								
								Add a check for strptime().  
							
							It's an XSI extension, not available on some supported systems. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								001d668d40 
								
							
								 
							
						 
						
							
							
								
								lavf: factor out conversion of ISO8601 string to unix time  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								896e59758a 
								
							
								 
							
						 
						
							
							
								
								Move resetting of channels, sample_rate back to av_find_stream_info.  
							
							Resetting it on codec init would incorrectly clear the values
if av_find_stream_info was already run before, in particular
breaking ffplay.
This fixes trac tickets #213  and #262 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								71a861cf40 
								
							
								 
							
						 
						
							
							
								
								lavc: make avcodec_alloc_context3 officially public.  
							
							Deprecate avcodec_alloc_context/2. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a67c061e0f 
								
							
								 
							
						 
						
							
							
								
								lavf: add avformat_find_stream_info()  
							
							It supports passing options to codecs. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1c6d2b7df0 
								
							
								 
							
						 
						
							
							
								
								lavf: update AVStream.nb_frames when muxing.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e59c8ecf1 
								
							
								 
							
						 
						
							
							
								
								Fix av_open_input_stream with uninitialized context pointer.  
							
							Code would allocate a new context but forget to assign it
to the pointer actually passed to avformat_open_input,
potentially causing a crash.
Even if it was initialized it would cause a memleak.
This caused crashes with e.g. mpd, see also
http://bugs.gentoo.org/show_bug.cgi?id=373423 
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ebcdf5cda 
								
							
								 
							
						 
						
							
							
								
								Do not include mathematics.h in avutil.h  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f731c4429 
								
							
								 
							
						 
						
							
							
								
								lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.  
							
							av_open_input_stream used to allow this, even though it makes no sense.
Make it just print a warning instead of failing, thus restoring
compatibility.
Note that avformat_open_input() will still reject this combination.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5001d6ef4a 
								
							
								 
							
						 
						
							
							
								
								lavf: use the correct pointer in av_open_input_stream().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b442ca69d9 
								
							
								 
							
						 
						
							
							
								
								lavf: add an API to get output timestamps.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dafaef2fe1 
								
							
								 
							
						 
						
							
							
								
								Add support for aac streams in mp4/mov without extradata.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59ca3955fb 
								
							
								 
							
						 
						
							
							
								
								av_find_stream_info: simplify EAGAIN handling.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c956907eca 
								
							
								 
							
						 
						
							
							
								
								Revert needless API change in  05e84c95.  
							
							When providing a custom AVIOContex for a AVFMT_NOFILE format
only print a warning instead of erroring out.
This allows the code to work with older MPlayer versions that
just always set pb out of laziness.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4aeb776913 
								
							
								 
							
						 
						
							
							
								
								dump_metadata: Fix 0xd in metadata  
							
							Fixed ticket245
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dbafb0e06f 
								
							
								 
							
						 
						
							
							
								
								lavf: prevent crash in av_open_input_file() if ap == NULL.  
							
							Needed for proper behaviour in our old API compatibility code. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84bd2b4bf5 
								
							
								 
							
						 
						
							
							
								
								lavf: add a forgotten NULL check in convert_format_parameters().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25de5958c8 
								
							
								 
							
						 
						
							
							
								
								lavf: add avformat_write_header() as a replacement for av_write_header().  
							
							It supports more convenient setting of AVOptions. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								603b8bc2a1 
								
							
								 
							
						 
						
							
							
								
								Deprecate av_open_input_* and remove their uses.  
							
							Deprecate the last remaining member of AVFormatParameters. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								05e84c95c7 
								
							
								 
							
						 
						
							
							
								
								lavf: add avformat_open_input() as a replacement for av_open_input_*  
							
							Add support for demuxer private options. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35bdaf3d42 
								
							
								 
							
						 
						
							
							
								
								utils: Drop pointless '#if 1' preprocessor directive.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8fd2f4e02 
								
							
								 
							
						 
						
							
							
								
								lavf: initialise reference_dts in av_estimate_timings_from_pts.  
							
							Fixes issue2437.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								919d7a345a 
								
							
								 
							
						 
						
							
							
								
								Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								996bbdbf1f 
								
							
								 
							
						 
						
							
							
								
								lavf: make compute_pkt_fields2() return meaningful error values  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dbaba52ed2 
								
							
								 
							
						 
						
							
							
								
								lavf: don't try to free private options if priv_data is NULL.  
							
							This might happen if there was an error before priv_data was allocated
and result in segfault. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2d67e424f 
								
							
								 
							
						 
						
							
							
								
								Remove all uses of now deprecated metadata functions.  
							
							
								
							
							
						 
						14 years ago