2ba68dd044 
								
							
								 
							
						 
						
							
							
								
								lavf: remove unreliable timestamp guessing heuristic  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								5626f994f2 
								
							
								 
							
						 
						
							
							
								
								avformat: Use av_reallocp() where suitable  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								7950e519bb 
								
							
								 
							
						 
						
							
							
								
								Disable deprecation warnings for cases where a replacement is available  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5b46a064d 
								
							
								 
							
						 
						
							
							
								
								lavf: Don't interpret just slightly broken timestamps as wraparound  
							
							This avoids breaking some slightly incorrect (dts > pts) timestamps
in sample HLS streams from Apple.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e740929a07 
								
							
								 
							
						 
						
							
							
								
								lavf: Make sure avg_frame_rate can be calculated without integer overflow  
							
							If either of the deltas is too large for the multiplications to
succeed, don't use this for setting the avg frame rate.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Cc: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df9f22d42b 
								
							
								 
							
						 
						
							
							
								
								avf: move url utility functions in a separate file  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								12db891dcd 
								
							
								 
							
						 
						
							
							
								
								avf: move ff_write_chained to mux.c  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								508998f7d5 
								
							
								 
							
						 
						
							
							
								
								avf: move riff tags accessors where they belong  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec7c51c786 
								
							
								 
							
						 
						
							
							
								
								avf: move ff_http_match_no_proxy to network  
							
							It is only used by network protocols. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afc8685395 
								
							
								 
							
						 
						
							
							
								
								avf: split off format register and lookup function  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c330eba84c 
								
							
								 
							
						 
						
							
							
								
								lavf: preserve side data when parsing packets.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2832ea26f3 
								
							
								 
							
						 
						
							
							
								
								Remove commented-out debug #define cruft  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0f8be6413 
								
							
								 
							
						 
						
							
							
								
								avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5f8873620 
								
							
								 
							
						 
						
							
							
								
								silly typo fixes  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dbb1425811 
								
							
								 
							
						 
						
							
							
								
								lavf: make sure stream probe data gets freed.  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aa3c779984 
								
							
								 
							
						 
						
							
							
								
								lavf: sanity check size in av_get/append_packet().  
							
							To avoid allocating ridiculous amounts of memory for corrupted files,
read the input in chunks limited to filesize or an arbitrary large
amount when that is not known (chosen to be 50M). 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								85a5bc054c 
								
							
								 
							
						 
						
							
							
								
								lavf: remove disabled FF_API_R_FRAME_RATE cruft  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b486ab13b 
								
							
								 
							
						 
						
							
							
								
								lavf: remove disabled FF_API_AV_GETTIME cruft  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								435c2a31ad 
								
							
								 
							
						 
						
							
							
								
								lavf: remove disabled FF_API_READ_PACKET cruft  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a7c4daf46 
								
							
								 
							
						 
						
							
							
								
								lavf: remove disabled FF_API_CLOSE_INPUT_FILE cruft  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1afddbe59e 
								
							
								 
							
						 
						
							
							
								
								avpacket: use AVBuffer to allow refcounting the packets.  
							
							This will allow us to avoid copying the packets in many cases.
This breaks ABI. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								efa7f42020 
								
							
								 
							
						 
						
							
							
								
								Use the avstring.h locale-independent character type functions  
							
							Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								de9cd1b173 
								
							
								 
							
						 
						
							
							
								
								lavf: Handle the environment variable no_proxy more properly  
							
							The handling of the environment variable no_proxy, present since
one of the initial commits (de6d9b6404 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								91ac403b13 
								
							
								 
							
						 
						
							
							
								
								lavf: fix arithmetic overflows in avformat_seek_file()  
							
							The values compared here can be more than INT64_MAX apart.  Since the
difference is always positive, converting to uint64_t before subtracting
gives the correct result without overflows.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb45553f57 
								
							
								 
							
						 
						
							
							
								
								Remove pointless #undefs of previously forbidden functions.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								261e9348ef 
								
							
								 
							
						 
						
							
							
								
								lavf: add a common function for selecting a pcm codec from parameters  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7709ce029a 
								
							
								 
							
						 
						
							
							
								
								lavf: avoid integer overflow in ff_compute_frame_duration()  
							
							Scaling the denominator instead of the numerator if it is too large
loses precision. Fixes an assert caused by a negative frame duration in
the fuzzed sample nasa-8s2.ts_s202310.
CC: libav-stable@libav.org  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33893e6abc 
								
							
								 
							
						 
						
							
							
								
								url: Handle relative urls starting with two slashes  
							
							This is defined by RFC 3986 section 5.4.1 to be handled this way.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eea003814c 
								
							
								 
							
						 
						
							
							
								
								url: Handle relative urls being just a new query string  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a6363e3d89 
								
							
								 
							
						 
						
							
							
								
								url: Don't treat slashes in query parameters as directory separators  
							
							Strip off query parameters from the original url before
applying the new relative path.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								716d413c13 
								
							
								 
							
						 
						
							
							
								
								Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55f9037f38 
								
							
								 
							
						 
						
							
							
								
								avformat: split muxing functions from util.c  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3c40a7d1d 
								
							
								 
							
						 
						
							
							
								
								avformat: const correctness for av_hex_dump / av_hex_dump_log  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72eaba5e4f 
								
							
								 
							
						 
						
							
							
								
								avformat: Convert some commented-out printf/av_log instances to av_dlog  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9eb296572e 
								
							
								 
							
						 
						
							
							
								
								lavf: use a malloced AVFrame in try_decode_frame().  
							
							This allows using avcodec_free_frame() to free it properly. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1cc569ddda 
								
							
								 
							
						 
						
							
							
								
								lavf: zero data/size of the packet passed to read_packet().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6746cd7f61 
								
							
								 
							
						 
						
							
							
								
								lavf probe: prevent codec probe with no data at all seen  
							
							This occurs with fuzzed mpeg-ts files. set_codec_from_probe_data() is
called with a zeroed AVProbeData since no packet made through for
specific stream. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3f7fd59d15 
								
							
								 
							
						 
						
							
							
								
								avformat: fix typo in avformat_close_input  
							
							The condition should not be &&. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b4bb19e63 
								
							
								 
							
						 
						
							
							
								
								lavf: flush the output AVIOContext in av_write_trailer().  
							
							This is consistent with stdio and is what we want to do in all cases.
Fixes a bug in the voc muxer which didn't flush in write_trailer()
previously. This is the cause of the change in the test results. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0c270239c2 
								
							
								 
							
						 
						
							
							
								
								lavf: cosmetics, reformat av_write_trailer().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44272c1ccc 
								
							
								 
							
						 
						
							
							
								
								avformat: refactor avformat_close_input  
							
							Do not crash if the input format is not allocated yet. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d1f443c3d 
								
							
								 
							
						 
						
							
							
								
								avformat: simplify avformat_close_input  
							
							avio_close checks by itself for NULL condition. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								edb5238ccb 
								
							
								 
							
						 
						
							
							
								
								libavformat: add const to AVCodec pointers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdefe22b8e 
								
							
								 
							
						 
						
							
							
								
								lavf: Detect discontinuities in timestamps for framerate/analyzeduration calculation  
							
							If the dts difference is more than 1000 times the average dts
difference, restart the analysis.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago