32da94fa7f 
								
							
								 
							
						 
						
							
							
								
								lavf: Reset global flag on deinit  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7dd8bf53bd 
								
							
								 
							
						 
						
							
							
								
								avformat: add common mechanism for skipping samples at the start of file  
							
							This makes using the generic indexing code with mp3 easier at a later
point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba631b7914 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Ensure that AVFMT_FLAG_CUSTOM_IO is set before use  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								98cab39798 
								
							
								 
							
						 
						
							
							
								
								lavf: Fix variables constness in ff_iso8601_to_unix_time()  
							
							warning: assigning to
      'char *' from 'const char *' discards qualifiers
      [-Wincompatible-pointer-types-discards-qualifiers] 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84b95715fa 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Place timestamp trace logs under FF_FDEBUG_TS  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d02b3e9bdb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Provide context for av_log() where one is available  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a3eb042c7 
								
							
								 
							
						 
						
							
							
								
								Replace av_dlog with normal av_log at trace level  
							
							This applies to every library where performance is not critical. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								edbb9b5e8f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Add HEVC to unreliable_tb()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80fa48a413 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Use codec_info_duration_fields in fps calculation end decission when no timestamps and thus no duration_count is available  
							
							This avoids waiting for a count to increase which will always be 0 and may
reduce the startup delay for affected streams (rare)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b50a4ca179 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Preserve packet duration when parsing is done only for headers  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b5f34f788 
								
							
								 
							
						 
						
							
							
								
								avformat, avcodec: log discard padding  
							
							Useful for debugging.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								27f2746282 
								
							
								 
							
						 
						
							
							
								
								parseutils: Make av_small_strptime public  
							
							And use it in libavformat.
Based on a similar patch by Stefano Sabatini <stefasab@gmail.com>. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff6841c6bb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: avoid discarded streams in av_find_default_stream_index()  
							
							Fixes Ticket2010
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19321a295a 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Terminate SPS in avci100_1080i_extradata to avoid warnings during parsing  
							
							Fixes: AVCI100_Test.mxf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cca44764b9 
								
							
								 
							
						 
						
							
							
								
								avformat: add avformat_flush()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9deaec7828 
								
							
								 
							
						 
						
							
							
								
								lavf: move internal fields from public to internal context  
							
							This is not an API change; the fields were explicitly declared private
before.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8f814a907 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix division by 0  
							
							Fixes: signal_sigsegv_14999ef_1188_cov_2888512890_SVA_CL1_E.264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd242b468d 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: fix if_( style  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e005dc621a 
								
							
								 
							
						 
						
							
							
								
								avformat: fix mode of img2dec.c and utils.c  
							
							Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b37858eae1 
								
							
								 
							
						 
						
							
							
								
								avformat/img2dec: remove the non-negative number requirement for start_number option  
							
							industrial cameras usually mark the trigger frame as frame number 0
all frames saved before trigger frame receive a negative sequence number
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7620d48f2e 
								
							
								 
							
						 
						
							
							
								
								avformat/network: Check for av_malloc* failures in ff_tls_init()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b15bba2ae 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix number suffixes in tb_unreliable()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								43630c82f1 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: remove unneeded #include, there are no assert() only av_assert*  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4227e4fe74 
								
							
								 
							
						 
						
							
							
								
								lavf: add a convenience function for adding side data to a stream  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a47c9331ef 
								
							
								 
							
						 
						
							
							
								
								avformat: Improve data streams/codec support  
							
							This adds data codec/stream handling where previously there was only
audio/video/subtitles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2959a61232 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Use avio_closep() to avoid leaving stale pointers in memory  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bbfca8e84b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Clear pointer in ff_alloc_extradata() to avoid leaving a stale pointer in memory  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce1e10aa24 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: add dvbsub to set_codec_from_probe_data()  
							
							Fixes part of ticket 4221
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f810a9b37 
								
							
								 
							
						 
						
							
							
								
								libavformat: Check for malloc failures in avformat_new_stream  
							
							CC: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								649c158e8c 
								
							
								 
							
						 
						
							
							
								
								Add FFMPEG_VERSION into the binary libs  
							
							This simplifies identifying from which revision a binary of a lib came from
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a29524bf2e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Do not update programs streams from program-less streams in update_wrap_reference()  
							
							Fixes Ticket3686
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								add46edf33 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: use r_frame_rate only in the demuxer for ff_compute_frame_duration()  
							
							This is primarly to maintain current behavior when r_frame_rate is set for muxers
and could be reverted if it has some advantage
Fixes Ticket3629 part1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d5a263f480 
								
							
								 
							
						 
						
							
							
								
								fix "than" typo  
							
							Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								53496aa7f3 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Do not estimate the container bitrate from the streams if one video stream lacks the bitrate  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a66893ac94 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: check for malloc failure  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20cb3fab3f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: change assert to av_assert0()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								041c6109da 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: replace impossible condition by av_assert0() in ff_gen_search()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5e5959d52 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix calculating the absolute difference of timestamps  
							
							we dont use FFABS(a-b) as that could result in undefined behavior if it overflows
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd70470d72 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Compute the current pts of mpeg1/2 I/P frames from the next frame when available  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9e561410c0 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Pass the next pts/dts to compute_pkt_fields() when available  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								24fdf7334d 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Search harder for missing stream information in flv by default  
							
							Fixes Ticket4133
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								367c9d33d6 
								
							
								 
							
						 
						
							
							
								
								avformat: replace some odd 30-60 rates by higher less odd ones in  get_std_framerate()  
							
							Fixes Ticket4012
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								92c07acce7 
								
							
								 
							
						 
						
							
							
								
								Read (display) aspect ratio from mxf files.  
							
							Fixes ticket #4107 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6690d4c3f5 
								
							
								 
							
						 
						
							
							
								
								lavf/ffm: store/restore private codec context  
							
							Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7f25979dd 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Leave skip_clear enabled until after estimate_timings()  
							
							Should make no difference but will be needed for subsequent commits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1700fa013e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: support more AVC Intra formats without SPS/PPS header  
							
							add support for AVC Intra 50 720p and 1080p without SPS/PPS header in mxf and mov demuxers. I got the SPS/PPS tables from libbmx.
Reviewed-by: tomas.hardin@codemill.se 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4641ae352e 
								
							
								 
							
						 
						
							
							
								
								avformat: Add and use ff_copy_whitelists()  
							
							Fixes potential security issue in case of running out of memory
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								057ea2a982 
								
							
								 
							
						 
						
							
							
								
								avformat: Add format_whitelist  
							
							This allows restricting demuxers to a list of needed ones for improved security
Note, some demuxers themselfs open other demuxers, these are only restricted if
AVOptions are forwarded to them. Please check that your code does that.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0db6bbb24c 
								
							
								 
							
						 
						
							
							
								
								avformat: Make avformat_free_context handle NULL  
							
							Work as the other free()-like functions.
Bug-Id: CID 1087081
CC: libav-stable@libav.org  
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d267a0f8c1 
								
							
								 
							
						 
						
							
							
								
								avformat/util: Simplify av_guess_frame_rate() by using AVCodecContext.framerate  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago