8658390336 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils.c: Cosmetics: Fix incorrect comma placement  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1bc2fa447c 
								
							
								 
							
						 
						
							
							
								
								avformat: use AVPROBE_SCORE_STREAM_RETRY, instead of AVPROBE_SCORE_RETRY - 1  
							
							This makes the code clearer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f6f4962fb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: dvd still frames read thru libdvdnav ended up in internal lavf buffer  
							
							This is the solution we've been using in XBMC for over 2 years for dvd still frames.
The problem is that the demuxer asks for probing of the codec in the mpeg stream.
This causes lavf to read the whole menu structure into internal buffers.
After which, it won't read from input stream anymore and no events triggers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								16097efb8c 
								
							
								 
							
						 
						
							
							
								
								Auto-detect hevc in mpeg-ts.  
							
							Fixes decoding of files without PMT/PAT.
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78987a88a8 
								
							
								 
							
						 
						
							
							
								
								lavf: include 60 fps in guessed standard frame rates  
							
							Due to what looks like an off-by-one error 60 * 12 * 1001 / 12 * 1001
is not tested as standard frame rate in avformat_find_stream_info(). 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d67cfdeb53 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: Refactor duplicated PRINT macro  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								102bd64168 
								
							
								 
							
						 
						
							
							
								
								lavd: add avdevice_dev_to_app_control_message API  
							
							New API allows to send messages from devices to application.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50ecf15712 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: K&R formatting cosmetics  
							
							Also adjust some comment wording / spelling and reorder header #includes. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								86bee7984e 
								
							
								 
							
						 
						
							
							
								
								AVFormatContext: add metadata_header_padding field  
							
							This field is used to store the number of bytes that should be written
as padding to a metadata header of a file.  For example:
 - The FLAC format's METADATA_BLOCK_PADDING [1]
 - The ID3v2 tag format's padding           [2]
[1] http://xiph.org/flac/format.html#metadata_block_padding 
[2] http://id3.org/id3v2.3.0#ID3v2_overview 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb36e441de 
								
							
								 
							
						 
						
							
							
								
								Never favour an audio stream with 0 channels in av_find_best_stream().  
							
							Fixes ticket #3311 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								05c78f345b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: av_probe_input_buffer2 decrease difference to libav  
							
							This removes the initialization of 2 unused fields
The change was part of c1868e7ee7 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								05886c9d4e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c3b026a0e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils/av_probe_input_buffer2: fix offset check  
							
							The check could fail if avio_read() read less than requested
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6a2064820b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils/av_probe_input_buffer2: Fix pd.buf_size  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2115a35974 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_probe_input_buffer more robust  
							
							Always use the actually read size as the offset instead of making
possibly invalid assumptions.
Addresses: CVE-2012-6618 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b76362836 
								
							
								 
							
						 
						
							
							
								
								lavf: use a fixed width type  
							
							It's shorter and more consistent with the rest of the code. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1868e7ee7 
								
							
								 
							
						 
						
							
							
								
								lavf: simplify handling of offset in av_probe_input_buuffer()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3867f3718b 
								
							
								 
							
						 
						
							
							
								
								lavf: remove a pointless check  
							
							AVStream.codec is always non-NULL 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								863f4c3c71 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix rounding error accumulation for generated dts in compute_pkt_fields()  
							
							This only updates the case where there is no B frame reordering delay.
Tested-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5047849584 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix order of buffers in timestamp update code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bfcedb33f 
								
							
								 
							
						 
						
							
							
								
								avformat: dont run update_initial_duration() twice  
							
							This should avoid floods of first_dts not matching debug messages
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee4e805093 
								
							
								 
							
						 
						
							
							
								
								avformat: add ff_get_extradata()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d600b18f22 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: limit rfps to values larger than fps  
							
							This avoids some nonsense values being produced by totally corrupted input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f6cd447bf1 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: treat flv like mov with timestamp discarding  
							
							This prevents a regression when using an avparser with flv h264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								281a40e18f 
								
							
								 
							
						 
						
							
							
								
								lavf: remove an unneeded call to avcodec_get_frame_defaults().  
							
							avcodec_decode_*() resets the frame itself. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb891b3114 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of avcodec_free_frame with av_frame_free().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								81c1197494 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Check avcodec_open2() return code in av_find_stream_info()  
							
							Fixes CID1135750
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f763775aa 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1770da18f7 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: reject poorly fitting rfps values earlier  
							
							This avoids collecting statistics for rfps values that very likely
will get rejected later.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1565a9a9e9 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: factor rfps calculation out  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc1b0a54f9 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: provide more IO statistics in debug output at start and end of av_find_streaminfo()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f3008f30fb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: move update_wrap_reference() up  
							
							simplifies code
also remove extra {}
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34b16e2d36 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: reorder operations in update_wrap_reference()  
							
							prevents a integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								394b0c830a 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: correct for timestamp wrap earlier  
							
							This uses dts & pts as reference instead of first_dts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7ead9ad44 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: also fix wrapping of start_time in update_initial_timestamps()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd5f925927 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix pts_wrap_behavior calculation with negative first_dts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f8bc92365 
								
							
								 
							
						 
						
							
							
								
								Add missing #includes for *INT64_MAX and *INT64_C  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f0f75dfa34 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: inject audio skip side data before the side data merge code  
							
							This ensures that its handled the same way as other side data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								98fc81b20d 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: move side data merge after parser  
							
							merging before the parser can conflict with the parser, also
future changes depend on it being done later
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8dec360c5 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: dont count attached pics toward the probesize  
							
							Such pics behave more like headers which we also dont count.
Fixes Ticket3146
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b9c3b4505 
								
							
								 
							
						 
						
							
							
								
								Replace all instances of avcodec_alloc_frame() with av_frame_alloc().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ecf442a58b 
								
							
								 
							
						 
						
							
							
								
								lavf: improve support for AVC-Intra files.  
							
							Generate extradata with SPS/PPS based on container dimensions.
Authors of this commit are: Reimar and Thomas Mundt
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								676bc505f7 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: disabled debug code to collect format probing statistics  
							
							This allows collecting statistics on probing scores and the amount of data
probing needed for various files and formats.
For example it can be used to find out which formats tend to need more
data for probing or which files are probed with less certain/lower scores
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b73a3f6f6 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: never decrease has_b_frames in compute_pkt_fields()  
							
							The intent of the original check was to increase has_b_frames when
it was incorrectly set to 0. Later codecs allowed larger values
Found-by: divVerent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1c229cdbc 
								
							
								 
							
						 
						
							
							
								
								lavf: do not use int to store an int64  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4eb49fdde8 
								
							
								 
							
						 
						
							
							
								
								lavf: remove unreliable timestamp guessing heuristic  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2ba68dd044 
								
							
								 
							
						 
						
							
							
								
								lavf: remove unreliable timestamp guessing heuristic  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4307026243 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: make "first_dts not matching first dts in the queue" message more informative  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e5271a9fd 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: do not override pts in h264 when they are provided from the demuxer  
							
							Fixes Ticket2143
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								210afae0ba 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Check size argument in ff_add_index_entry()  
							
							Fixes infinite loop
Fixes Ticket3061
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago