176b72a28c 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: provide feedback in case of invalid probe size  
							
							Log message in case the max_probe_size value in av_probe_input_buffer()
is smaller than the minimum accepted value. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1a707f728 
								
							
								 
							
						 
						
							
							
								
								Add a new function av_codec_get_tag2().  
							
							av_codec_get_tag() may return 0 both in case a codec_tag was
found and if no codec_tag was found.
The new function does not have this ambiguity. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78e27c44c3 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: clarify/extend messages in avformat_find_stream_info()  
							
							In particular, specify the unit of the shown values in case the max probe
size/duration is reached. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db1ba2213f 
								
							
								 
							
						 
						
							
							
								
								lavf: use avpriv_find_pix_fmt instead of ff_  
							
							Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								953061ed95 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: more complete dts checks  
							
							Fixes division by zero
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2713e43ac8 
								
							
								 
							
						 
						
							
							
								
								ff_get_audio_frame_size: try to fix wma in wav  
							
							Fixes Ticket1905, Ticket2114
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c52e07bb6e 
								
							
								 
							
						 
						
							
							
								
								Fix AVCI50 SPS to specify a SAR of 4:3 instead of 3:4.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5142a95a5 
								
							
								 
							
						 
						
							
							
								
								Support more AVC-Intra files  
							
							Followup to http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/151321 
patch by Reimar and Thomas Mundt fixes some AVC-Intra files from
different tickets.
It does not fix http://samples.ffmpeg.org/ffmpeg- 
bugs/trac/ticket524/AVCI50.mov
Authors of this commit are: Reimar and Thomas Mundt
Patch and commit message mostly taken from ffmpeg-devel, mail by Carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bbb11f383e 
								
							
								 
							
						 
						
							
							
								
								lavf: add return to silence compiler warning  
							
							The added statement is not reachable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								491ca0e89f 
								
							
								 
							
						 
						
							
							
								
								Replace references to "que" with the appropriate word.  
							
							"que" sounds like a slang word to me. This commit renames a few
variables, fix the comments and the logging messages (sometimes along
with small other typo fixes). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								98db905896 
								
							
								 
							
						 
						
							
							
								
								avformat_seek_file: Dont attempt to rescale INT64_MIN/MAX  
							
							This fixes a integer overflow in fate
Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aa86d2d884 
								
							
								 
							
						 
						
							
							
								
								lavf: move stream==-1 handling from ff_subtitles_queue_seek() to avformat_seek_file()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								341e40f1e1 
								
							
								 
							
						 
						
							
							
								
								lavf: Fix codec id forcing with probed codecs  
							
							Fixes Ticket2088
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a6b6f425e 
								
							
								 
							
						 
						
							
							
								
								lavf: move force_codec_ids() up  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63753186cc 
								
							
								 
							
						 
						
							
							
								
								lavf: Remove "Adjusting PTS forward" code  
							
							it causes problems (incorrectly detect TS discontinuities)
 with a brokan TS file (test-audio-broken.ts)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1166fc07a2 
								
							
								 
							
						 
						
							
							
								
								utils: fix duration calculation for strange_duration_example.ts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e901ffc61 
								
							
								 
							
						 
						
							
							
								
								wrap_timestamp: remove unneeded check  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1662bd350a 
								
							
								 
							
						 
						
							
							
								
								lavf: fix integer overflows  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d74dea84f 
								
							
								 
							
						 
						
							
							
								
								lavf: Provide a monotonic timestamp to the outside world  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								67c1b5b026 
								
							
								 
							
						 
						
							
							
								
								lavf: remove unneeded pb check  
							
							Fixes CID747727
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a70b38d2dd 
								
							
								 
							
						 
						
							
							
								
								lavf: fix memleak  
							
							Fixes CID747738
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20899c54f0 
								
							
								 
							
						 
						
							
							
								
								http/utils: rename "demuxer" to mime_type  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68bc012190 
								
							
								 
							
						 
						
							
							
								
								http/utils: move mime -> demuxer maping from http to utils  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3d95b54db 
								
							
								 
							
						 
						
							
							
								
								probe: belive protocol content type if set and avoid lengthly probing.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								03847eb825 
								
							
								 
							
						 
						
							
							
								
								lavf: compute probe buffer size more reliably.  
							
							The previous code computes the offset by reversing the growth
of the allocated buffer size: it is complex and did lead to
inconsistencies when the size limit is reached.
Fix trac ticket #1991 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83ddedbbf2 
								
							
								 
							
						 
						
							
							
								
								lavf: the core rfps code needs 2 durations to estimate rfps  
							
							This fixes a regression where this count became 1 with
HPM-GC\ EXPORT\ FCP-1A-AVCI100-1080i25-001.mxf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								0efcf16a3e 
								
							
								 
							
						 
						
							
							
								
								replace av_log(0, by av_log(NULL,  
							
							The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d513fb1c75 
								
							
								 
							
						 
						
							
							
								
								Add -skip_initial_bytes option.  
							
							Fixes ticket #1909 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19660a8876 
								
							
								 
							
						 
						
							
							
								
								Allow use of @ character in username and passwords embedded in URLs  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bee03034b 
								
							
								 
							
						 
						
							
							
								
								lavf: let av_find_best_stream use bitrate info if available  
							
							I guess the user expects to see the stream with the highest bitrate, not with
the most frames, this is especially useful for multi bitrate streams.
This patch changes av_find_best_stream to select the stream based on a number
of conditions, the first condition has the highest priority, the last condition
has the lowest:
1) Select the stream with the highest FFMIN(5, codec_info_nb_frames) value
2) Select the stream with the highest bitrate
3) Select the stream with the highest codec_info_nb_frames
4) Select the first stream
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								af9ec3dd1d 
								
							
								 
							
						 
						
							
							
								
								av_probe_input_format3: support NULL as buffer. Fixes null ptr deref  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ec1fe1f47 
								
							
								 
							
						 
						
							
							
								
								lavf: Dont compare absolute to relative timestamps in duration gcd  
							
							This prevents a division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2ca649f177 
								
							
								 
							
						 
						
							
							
								
								utils: fix integer overflow with DURATION_MAX_READ_SIZE  
							
							Fixes CID703746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f742c7b2ce 
								
							
								 
							
						 
						
							
							
								
								lavf: fix integer overflow in rfps calculation  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6992b0bfc2 
								
							
								 
							
						 
						
							
							
								
								utils: fix rounding of micro seconds  
							
							Found-by: Johan Wessfeldt <johan.wessfeldt@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e12cfd044c 
								
							
								 
							
						 
						
							
							
								
								lavf: const correctness for avformat_new_stream  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5442c6cce3 
								
							
								 
							
						 
						
							
							
								
								lavf: fix duration estimation for multi program TS  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								31cdf6002a 
								
							
								 
							
						 
						
							
							
								
								lavf: increase retries to guess duration from pts by 1  
							
							This fixes finding the duration for one TS file
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee23dcf534 
								
							
								 
							
						 
						
							
							
								
								avformat_free_context: allow NULL as argument  
							
							Fixes CID703682
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								901f4bb6fc 
								
							
								 
							
						 
						
							
							
								
								utils: consider mpeg4 in mp4/mov to have a unreliable timebase  
							
							Partly fixes Ticket1664
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45bd0d15f4 
								
							
								 
							
						 
						
							
							
								
								lavf: fix fps detection with PAFF H.264  
							
							Fixes Ticket1065
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								120b38b966 
								
							
								 
							
						 
						
							
							
								
								avio: redesign ffio_rewind_with_probe_data()  
							
							This prevents a double free
Fixes CID718285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59cbedfc3d 
								
							
								 
							
						 
						
							
							
								
								update_initial_timestamps: increase pts_buffer size  
							
							Fixes CID733786
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								317505b566 
								
							
								 
							
						 
						
							
							
								
								lavf: do not prematurely accept a format with low score in init_input()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								94f5470a20 
								
							
								 
							
						 
						
							
							
								
								lavf: add a AVPROBE_SCORE_RETRY instead of using hardcoded values.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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