Michael Niedermayer
							
						 
						
							
							
							
								
							
								12d1ee6a5e 
								
							
								 
							
						 
						
							
							
								
								ff_add_index_entry: reject AV_NOPTS_VALUE  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								2cd491a47c 
								
							
								 
							
						 
						
							
							
								
								lavf: move generic index generation code to a later point  
							
							 
							
							 
							
							
								
							
							
							By moving it to a later point relative and unknown timestamps
are more likely to have been corrected
similar patch reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Conflicts:
	libavformat/utils.c 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								2880c31660 
								
							
								 
							
						 
						
							
							
								
								parse_packet: use pkt.pos always instead of the avparser offset.  
							
							 
							
							 
							
							
								
							
							
							This is more correct and will be needed when the code is moved to
a later point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								9054f6b66b 
								
							
								 
							
						 
						
							
							
								
								probe_codec: fix memory corruption  
							
							 
							
							 
							
							
								
							
							
							Found-by: Tanami Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								da62b4326b 
								
							
								 
							
						 
						
							
							
								
								av_find_stream_info: skip flushing codecs and estimating timings if probe_size==0  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								1c2beff04a 
								
							
								 
							
						 
						
							
							
								
								lavf: Set pos for all packets of AVSTREAM_PARSE_FULL_RAW files.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								e2fd18d40d 
								
							
								 
							
						 
						
							
							
								
								lavf: factor AVStream st out  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								6b38101df5 
								
							
								 
							
						 
						
							
							
								
								parse_packet: reset pkt->pos after it has been used  
							
							 
							
							 
							
							
								
							
							
							This should have no effect as it was not used in this case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								01272e7662 
								
							
								 
							
						 
						
							
							
								
								Revert "lavf: count skipped samples for initial timestamps."  
							
							 
							
							 
							
							
								
							
							
							This reverts commit 885fc05865 .
This commit caused timestamps in case of generic seeking to become
inconsistent. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Peter Ross
							
						 
						
							
							
							
								
							
								1be55c82a5 
								
							
								 
							
						 
						
							
							
								
								av_url_split: dont let '/' char whallop '?' char  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Nicolas George
							
						 
						
							
							
							
								
							
								b0629366a2 
								
							
								 
							
						 
						
							
							
								
								lavf: make cmdutils's check_stream_specifier public.  
							
							 
							
							 
							
							
								
							
							
							The new function is called avformat_match_stream_specifier()
and does not include logging the error message. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Nicolas George
							
						 
						
							
							
							
								
							
								885fc05865 
								
							
								 
							
						 
						
							
							
								
								lavf: count skipped samples for initial timestamps.  
							
							 
							
							 
							
							
								
							
							
							If skip_samples is set and timestamps are synthesized using durations,
make them start at -skip_samples (rescaled) instead of 0,
so that the timestamp of the first undiscarded sample is 0. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Nicolas George
							
						 
						
							
							
							
								
							
								0e57d79b0c 
								
							
								 
							
						 
						
							
							
								
								lavf: set pkt_timebase at the same time as stream->time_base.  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Stefano Sabatini
							
						 
						
							
							
							
								
							
								5784a46986 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: show the number of stream in case of missing parameter  
							
							 
							
							 
							
							
								
							
							
							Increase feedback provided in avformat_find_stream_info(). 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Stefano Sabatini
							
						 
						
							
							
							
								
							
								739ec710c4 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: suggest what to do in case of missing codec information  
							
							 
							
							 
							
							
								
							
							
							In particular, fix trac issue #218 . 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Stefano Sabatini
							
						 
						
							
							
							
								
							
								a293549b32 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: extend has_codec_parameters() to make it show what info is missing  
							
							 
							
							 
							
							
								
							
							
							Improve feedback. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								018601dbf9 
								
							
								 
							
						 
						
							
							
								
								lavf: inject sample skip side data when requested by the demuxer  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								d8ce478c43 
								
							
								 
							
						 
						
							
							
								
								lavf: limit "Adjusting PTS forward" code to video streams  
							
							 
							
							 
							
							
								
							
							
							It can end up slightly messing up a series of valid timestamps
after a invalid one.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								a08efa2e36 
								
							
								 
							
						 
						
							
							
								
								has_decode_delay_been_guessed: tighten up the heuristic.  
							
							 
							
							 
							
							
								
							
							
							This adds the minimum delay needed with the current decoder to
recognize the reorder buffer size for the reference bitstreams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								4e9e0700fb 
								
							
								 
							
						 
						
							
							
								
								has_decode_delay_been_guessed: skip guessing when sps.num_reorder_frames is available  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								2c883c6acf 
								
							
								 
							
						 
						
							
							
								
								has_decode_delay_been_guessed: improve heuristic  
							
							 
							
							 
							
							
								
							
							
							This allows MR4_TANDBERG_C.264 and MR5_TANDBERG_C.264 to be decoded without -strict 1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Stefano Sabatini
							
						 
						
							
							
							
								
							
								3cd4f9fd76 
								
							
								 
							
						 
						
							
							
								
								lavf: allow multiple names in output devices selected by av_guess_format()  
							
							 
							
							 
							
							
								
							
							
							Consistent with av_find_input_format(). 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								5916313967 
								
							
								 
							
						 
						
							
							
								
								avformat: offset fps calculation by one to include 60.00 fps  
							
							 
							
							 
							
							
								
							
							
							To ensure the full range of values is still used, also adjust all uses of this function to loop from 0
instead of 1. This way only 60.00 is added and nothing lost.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								6d887ecac2 
								
							
								 
							
						 
						
							
							
								
								avformat: add 48 fps to the NTSC framerates  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Mans Rullgard
							
						 
						
							
							
							
								
							
								ae0a301668 
								
							
								 
							
						 
						
							
							
								
								Move av_gettime() to libavutil  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Bradshaw
							
						 
						
							
							
							
								
							
								2243f0d078 
								
							
								 
							
						 
						
							
							
								
								lavf: add field for how duration is estimated  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Anton Khirnov
							
						 
						
							
							
							
								
							
								a5db8e4a1a 
								
							
								 
							
						 
						
							
							
								
								lavf: don't segfault when a NULL filename is passed to avformat_open_input()  
							
							 
							
							 
							
							
								
							
							
							This can easily happen when the caller is using a custom AVIOContext.
Behave as if the filename was an empty string in this case.
CC: libav-stable@libav.org  
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Bradshaw
							
						 
						
							
							
							
								
							
								67703d64d7 
								
							
								 
							
						 
						
							
							
								
								lavf: cosmetic: format else with indentation  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								2a622c2369 
								
							
								 
							
						 
						
							
							
								
								lavf: add a "warning" when discarding a oddly backward subtitle or data starttime  
							
							 
							
							 
							
							
								
							
							
							Idea-by: ohsix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								47695b1d65 
								
							
								 
							
						 
						
							
							
								
								lavf: handle data like subtitles in start time calculation.  
							
							 
							
							 
							
							
								
							
							
							This fixes an issue with a crazy data track starting with a large
negative timestamp.
It could as well be solved in all user apps, but this is looking
attractively simpler ...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								107b42388c 
								
							
								 
							
						 
						
							
							
								
								lavf: fix missing "parser not found" message  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Alex Converse
							
						 
						
							
							
							
								
							
								f0ff9eb493 
								
							
								 
							
						 
						
							
							
								
								avformat: Probe codecs at score 0 on buffer exhaustion conditions.  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Alex Converse
							
						 
						
							
							
							
								
							
								62bebf6edb 
								
							
								 
							
						 
						
							
							
								
								avformat: Factorize codec probing.  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								5665674b55 
								
							
								 
							
						 
						
							
							
								
								lavf: use input keyframe flag when muxer does not provide keyframe flags.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								121d3875b6 
								
							
								 
							
						 
						
							
							
								
								lavf: print the invalid tb in avpriv_set_pts_info()  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								a6b3471c44 
								
							
								 
							
						 
						
							
							
								
								avformat: add needs_parsing type to enable codec TS use.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   James Zern
							
						 
						
							
							
							
								
							
								e9cef89702 
								
							
								 
							
						 
						
							
							
								
								avformat: Add a flag to mark muxers that allow (non strict) monotone timestamps.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Marton Balint
							
						 
						
							
							
							
								
							
								b36a0a80fc 
								
							
								 
							
						 
						
							
							
								
								lavf: also use codec aspect ratio in av_guess_sample_aspect_ratio  
							
							 
							
							 
							
							
								
							
							
							Use codec aspect ratio for frame aspect ratio if AVFrame is NULL.
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Mans Rullgard
							
						 
						
							
							
							
								
							
								81ad97eeda 
								
							
								 
							
						 
						
							
							
								
								lavf: make output format matching case insensitive  
							
							 
							
							 
							
							
								
							
							
							This is consistent with how input formats are matched.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Mans Rullgard
							
						 
						
							
							
							
								
							
								db465be45d 
								
							
								 
							
						 
						
							
							
								
								lavf: add mdec to is_intra_only() list  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Marton Balint
							
						 
						
							
							
							
								
							
								94a9ac1277 
								
							
								 
							
						 
						
							
							
								
								lavf: add av_guess_frame_sample_aspect_ratio function  
							
							 
							
							 
							
							
								
							
							
							Guesses the sample aspect ratio of a frame, based on both the stream and the
frame aspect ratio.
Since the frame aspect ratio is set by the codec but the stream aspect ratio
is set by the demuxer, these two may not be equal. This function tries to
return the value that you should use if you would like to display the frame.
Basic logic is to use the stream aspect ratio if it is set to something sane
otherwise use the frame aspect ratio. This way a container setting, which is
usually easy to modify can override the coded value in the frames.
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								381cc4b1e6 
								
							
								 
							
						 
						
							
							
								
								update_initial_durations: use av_ts2str()  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								c69b6649cf 
								
							
								 
							
						 
						
							
							
								
								update_initial_durations: add some checks to ensure things match up.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Clément Bœsch
							
						 
						
							
							
							
								
							
								5edd4fce40 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: make use of av_ts2str() to print timestamps.  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								75a9479b39 
								
							
								 
							
						 
						
							
							
								
								lavf: extend the avi raw hack to mov  
							
							 
							
							 
							
							
								
							
							
							Fixes ticket1194
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								30fc710556 
								
							
								 
							
						 
						
							
							
								
								lavf: print a matching tag in case of code tag validation failure  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								e5356ebf22 
								
							
								 
							
						 
						
							
							
								
								cosmetics: indentation  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								8916f1fbcb 
								
							
								 
							
						 
						
							
							
								
								avformat: only fill-in interpolated timestamps if duration is non-zero  
							
							 
							
							 
							
							
								
							
							
							This avoids returning duplicate timestamps for multiple packets when the
demuxer does not provide all timestamps and packet duration is not known. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								ff499157a1 
								
							
								 
							
						 
						
							
							
								
								avformat: remove a workaround for broken timestamps  
							
							 
							
							 
							
							
								
							
							
							This modifies pts in situations other than what was intended, leading to
invalid timestamps.
Reverts commit 90bb394dcc 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Reimar Döffinger
							
						 
						
							
							
							
								
							
								7effbee66c 
								
							
								 
							
						 
						
							
							
								
								Mark truncated packets as corrupt in av_get_packet.  
							
							 
							
							 
							
							
								
							
							
							Manually remove that flag again for formats that read an arbitrary
amount of data and thus truncation is not an error.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago