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  
				
					
						
							
							
								 
						
							
							
							
								
							
								88d4ff4b5f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Check av_packet_new_side_data() return before using it  
							
							Fixes null pointer dereference
Fixes CID1108592
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a807c68253 
								
							
								 
							
						 
						
							
							
								
								avformat: use ff_alloc_extradata()  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3fd79833e2 
								
							
								 
							
						 
						
							
							
								
								avformat: add ff_alloc_extradata() helper  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5082fcc0e2 
								
							
								 
							
						 
						
							
							
								
								avformat: add support to force specific AVCodecs  
							
							previously only codec_ids could be forced, which did not allow
forcing a specific implementation like libopenjpeg vs jpeg2000.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f4aec34805 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: pass AVFormatContext to find_decoder()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a63b479d11 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: factor find_decoder() out  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce67f442be 
								
							
								 
							
						 
						
							
							
								
								lavf: Avoid setting avg_frame_rate if delta_dts is negative  
							
							This avoids setting avg_frame_rate to invalid (negative)
values.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								49515cb840 
								
							
								 
							
						 
						
							
							
								
								avformat: remove duplicate includes  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15672e832f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5626f994f2 
								
							
								 
							
						 
						
							
							
								
								avformat: Use av_reallocp() where suitable  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e960b3e27e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Print warning if reallocating probe buffer failed  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c2be81b39 
								
							
								 
							
						 
						
							
							
								
								Do not suggest to increase probesize for image2 files.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68b4677420 
								
							
								 
							
						 
						
							
							
								
								lavf: Make probe_codec return an error code  
							
							This allows handling errors from av_realloc properly.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a1c24a267 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: use av_realloc_array()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c9d6ee4f2 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: functions that add entries should not destroy the whole list on failure  
							
							The caller does not expect this, and in case of adding new streams would then
not even be able to deallocate them anymore.
This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f369b9356c 
								
							
								 
							
						 
						
							
							
								
								avformat: Use av_reallocp_array() where suitable  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26f027fba1 
								
							
								 
							
						 
						
							
							
								
								lavf: fix the comparison in an overflow check  
							
							CC: libav-stable@libav.org 
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36cd017acd 
								
							
								 
							
						 
						
							
							
								
								avformat: make avformat_close_input() more tolerant.  
							
							The purpose of this commit is to make error management simpler and less
error prone, just like av_free() which is safe with NULL. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e5c338ba7a 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: assert position monotonicity in ff_find_last_ts()  
							
							This ensures that no read timestamp functions finds packets before the search window in ff_find_last_ts()
which could cause an infinite loop
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5d67bc796 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix bitrate overflow check  
							
							The check added in df33a58e53 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df33a58e53 
								
							
								 
							
						 
						
							
							
								
								lavf: avoid integer overflow when estimating bitrate  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fab694dd39 
								
							
								 
							
						 
						
							
							
								
								lavf: move a variable declaration to the block where it's used  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0388203098 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix duration_fields calculation when need_parsing=0  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago