c10731e78b 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate AVFormatContext.file_size  
							
							It's too unreliable to be useful. avio_size() should be called instead. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b631fba936 
								
							
								 
							
						 
						
							
							
								
								avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.  
							
							This will prevent seeking by bytes for formats that cannot handle this. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0041cdba98 
								
							
								 
							
						 
						
							
							
								
								avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.  
							
							This prevents flushing the packet buffer when the input format does not
support seeking. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d69fda9127 
								
							
								 
							
						 
						
							
							
								
								lavf: check stream_index from read_packet() for validity.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a31e9f68a4 
								
							
								 
							
						 
						
							
							
								
								lavf: fix signed overflow in avformat_find_stream_info()  
							
							On the first iteration through this code, last_dts is always
INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in
an invalid manner.  Although the result is only used if the
input values are valid, performing the subtraction is still
not allowed in a strict environment.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63b6d5f33f 
								
							
								 
							
						 
						
							
							
								
								update_stream_timings: Remove redundant check.  
							
							Found-by:Nicolas
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9bd979476 
								
							
								 
							
						 
						
							
							
								
								generic seeking: fail if there are 1000 non keyframes found with no keyframe.  
							
							This avoids scanning through a whole file just to fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								85ea5c6e73 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: fix overestimation of the rational number density.  
							
							Fixes Ticket498
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a93f28a4b 
								
							
								 
							
						 
						
							
							
								
								avformat_free_context: favor av_freep()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e81e5e8ad2 
								
							
								 
							
						 
						
							
							
								
								lavf: Avoid using av_malloc(0) in av_dump_format  
							
							On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b0e242825 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: Drop old hack for implicit HE-AAC signaling.  
							
							It has not been needed since a58858d60d 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78972a69e3 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: ignore subtitle timestamps in timings calculation  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ca59d1948 
								
							
								 
							
						 
						
							
							
								
								oggdec: add support for Xiph's CELT codec  
							
							This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb416bd68c 
								
							
								 
							
						 
						
							
							
								
								lavf: do not set codec_tag for rawvideo  
							
							If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense.  This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag.  The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.
This fixes fate-lavf-pixfmt with avfilter disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73a5287482 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: replace deprecated url_ferror.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								86af962830 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: use correct format string for int64_t.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9c98af13af 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: use AV_NOWARN_DEPRECATED in compatibility code.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cab2860c8a 
								
							
								 
							
						 
						
							
							
								
								Use a colon in the stream description, this matches how -map works now.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5cc2530fc2 
								
							
								 
							
						 
						
							
							
								
								prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8d8517b16 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: only complain about aspect missmatch when the difference is "meassureable"  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								65655a0499 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: better dts wrap correction.  
							
							Fixes Ticket488
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63d64228a7 
								
							
								 
							
						 
						
							
							
								
								lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails  
							
							Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c5306df96 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: rewrite real fps calculation code.  
							
							The new code is free of biasing to the first timestamps
Fixes fraps.fps.test.zip
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5554de13b2 
								
							
								 
							
						 
						
							
							
								
								ProRes Decoder  
							
							Signed-off-by: Elvis Presley <elvis@e.p> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cdced09ef6 
								
							
								 
							
						 
						
							
							
								
								Don't override duration from file header with bitrate duration  
							
							This is most noticable on matroska files which has duration
as part of it's header. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								940173d4d1 
								
							
								 
							
						 
						
							
							
								
								lavf utils: Remove write-only variable  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4439caa482 
								
							
								 
							
						 
						
							
							
								
								lavf utils: Rename shadowing variable  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								38670356f9 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils: print ts in the "invalid dts/pts combination" case.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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