a573e6c103 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: remove ff_iso8601_to_unix_time  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e942454daf 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: add ff_parse_creation_time_metadata  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1dba8371d9 
								
							
								 
							
						 
						
							
							
								
								avformat: add protocol_whitelist  
							
							Note to maintainers: update tools
Note to maintainers: set a default whitelist for your protocol
If that makes no sense then consider to set "none" and thus require the user to specify a white-list
for sub-protocols to be opened
Note, testing and checking for missing changes is needed
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7305c780b 
								
							
								 
							
						 
						
							
							
								
								Print the whitelists if entities are not found on them  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f61abc811 
								
							
								 
							
						 
						
							
							
								
								lavf: allow custom IO for all files  
							
							Some (de)muxers open additional files beyond the main IO context.
Currently, they call avio_open() directly, which prevents the caller
from using custom IO for such streams.
This commit adds callbacks to AVFormatContext that default to
avio_open2()/avio_close(), but can be overridden by the caller. All
muxers and demuxers using AVIO are switched to using those callbacks
instead of calling avio_open()/avio_close() directly.
(de)muxers that use the URLProtocol layer directly instead of AVIO
remain unconverted for now. This should be fixed in later commits. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2039b3e751 
								
							
								 
							
						 
						
							
							
								
								avformat: Add integer fps from 31 to 60 to get_std_framerate()  
							
							Fixes Ticket 5106
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b966a403dd 
								
							
								 
							
						 
						
							
							
								
								avcodec/utils: fix AVPacket lifetime in seek_frame_generic  
							
							Fixes ticket #5117  
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								822e80fde3 
								
							
								 
							
						 
						
							
							
								
								lavf: add internal API to append a bsf to a stream's list  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4caa3e1c6c 
								
							
								 
							
						 
						
							
							
								
								lavf: add API to apply a list of bsfs to a packet  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								676a93f2d8 
								
							
								 
							
						 
						
							
							
								
								avformat: Add av_program_add_stream_index()  
							
							This will be used by the subsequent commit(s)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cafb195604 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix "libavformat/utils.c:927:35: runtime error: signed integer overflow: -2450238577049583619 - 9223090561878065151 cannot be represented in type long long"  
							
							Fixes Mozilla bug 1229205
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3ab1e5a48c 
								
							
								 
							
						 
						
							
							
								
								lavf: add FFERROR_REDO to let demuxers return no packet.  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec7a3be11e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Move end_time1 AV_NOPTS_VALUE Check after rescale  
							
							Fixes integer overflow
Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d872643cfe 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Check AVFormatContext->duration in compute_chapters_end() before use  
							
							Fixes integer overflow
Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72eaf72623 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: avoid decoding a frame to get the codec parameters  
							
							Avoid decoding a frame to get the codec parameters while the codec
supports FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM. This is particulary useful
to avoid decoding twice images (once in avformat_find_stream_info and
once when the actual decode is made). 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f2d9ae6e49 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix indentation  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f4ec4364b 
								
							
								 
							
						 
						
							
							
								
								avformat: expose av_stream_new_side_data helper  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ef336e912 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Do not init parser if probing is unfinished  
							
							Fixes assertion failure
Fixes: 136f8b8d47af7892306625e597dee655/signal_sigabrt_7ffff6ae7cc9_8941_ab11bea57c84796418f481f873dc31ba.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d8c2f1a28 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec  
							
							Fixes a mpegts file with hevc that fails estimating duration. Increasing number of
retries fixes the issue.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c03ffe1712 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: re-factor freeing AVStreams  
							
							This matches the Libav signature and simplifies merging future changes. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8de1ee9f72 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate compute_pkt_fields2  
							
							All encoders set pts and dts properly now (and have been doing that for
a while), so there is no good reason to do any timestamp guessing in the
muxer.
The newly added AVStreamInternal will be later used for storing all the
private fields currently living in AVStream. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aeda1121c9 
								
							
								 
							
						 
						
							
							
								
								lavf: factor out freeing an AVStream  
							
							It will be needed in other functions. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0c71a5751 
								
							
								 
							
						 
						
							
							
								
								lavf: initialize cur_dts to AV_NOPTS_VALUE for muxing  
							
							The reasoning for setting it to zero only applies to demuxing. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55abb94b7d 
								
							
								 
							
						 
						
							
							
								
								avformat: unref packet after storing it in internal packet queue  
							
							Fixes a memory leak when using genpts 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b64fe49371 
								
							
								 
							
						 
						
							
							
								
								avformat: always unref the packet after parsing  
							
							This fixes a memory leak when side-data is present. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c2f861ca42 
								
							
								 
							
						 
						
							
							
								
								Replace remaining occurances of av_free_packet with av_packet_unref  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d584533cf3 
								
							
								 
							
						 
						
							
							
								
								avformat: Rework add_to_pktbuf  
							
							Make it return an error and check its return value when it is used.
Simplify the usage by calling `av_packet_ref` internally when needed. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce70f28a17 
								
							
								 
							
						 
						
							
							
								
								avpacket: Replace av_free_packet with av_packet_unref  
							
							`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5d4204309 
								
							
								 
							
						 
						
							
							
								
								avformat: Always return ref-counted AVPacket  
							
							And drop the av_dup_packet from the input_thread. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9825a24e5b 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: avoid giving up probing early with long subtitle events  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								948f3c19a8 
								
							
								 
							
						 
						
							
							
								
								lavc: Make AVPacket.duration int64, and deprecate convergence_duration  
							
							Note that convergence_duration had another meaning, one which was in
practice never used. The only real use for it was a 64 bit replacement
for the duration field. It's better just to make duration 64 bits, and
to get rid of it.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a8e447712 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: remove some left-over cruft from the 32-bit size fields  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								655b6dcb34 
								
							
								 
							
						 
						
							
							
								
								lavc/lavf: remove incompatible abi checks for the new 64bit fields  
							
							Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b290972b8f 
								
							
								 
							
						 
						
							
							
								
								lavf: Switch probesize and max_analyze_duration to 64bit.  
							
							Both are only accessible through AVOptions. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c311713ca9 
								
							
								 
							
						 
						
							
							
								
								lavf: Switch bitrate to 64bit unless compatibility with avconv was requested.  
							
							Based on a patch by Steve Swanson, swanysteve at gmail.
Fixes ticket #2089 . 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f600381b79 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils.c: use correct variable for message.  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f58e011a1f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Increase default max_stream_analyze_duration for flv  
							
							Fixes: unknown_video.flv
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26a0cd1b4b 
								
							
								 
							
						 
						
							
							
								
								lavf: add V as a video stream specifier which is not an attached picture  
							
							Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								670d8ecfae 
								
							
								 
							
						 
						
							
							
								
								lavf: Remove probesize32 and max_analyze_duration32 on version bump.  
							
							Add FF_API_PROBESIZE_32 to allow removing 32bit probesize and 32bit
max_analyze_duration after the next libavformat version bump. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								01bcc2d5c2 
								
							
								 
							
						 
						
							
							
								
								lavc: Drop deprecated destruct_packet related functions  
							
							Deprecated in 10/2012. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b4d68e7cdb 
								
							
								 
							
						 
						
							
							
								
								avformat: Remove use of AVFrac and AVStream->pts  
							
							Move field to internal part of AVStream and struct to internal.h
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								059a934806 
								
							
								 
							
						 
						
							
							
								
								lavc: Consistently prefix input buffer defines  
							
							Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								def97856de 
								
							
								 
							
						 
						
							
							
								
								lavc: AV-prefix all codec capabilities  
							
							Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4afc3429be 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix regression with H264 stream probing  
							
							Fixes Ticket4725
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cdca400c5e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Print stream number in max_analyze_duration exit path  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								90dd6ad22c 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: inform the user if the protocol cannot be determined  
							
							Assuming the wrong protocol can lead to suboptimal seeking performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								901922e047 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: adjust short skip threshold in ff_configure_buffers_for_index() to avoid seeking if a packet is skiped  
							
							Fixes Ticket4126
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								130a8e0eef 
								
							
								 
							
						 
						
							
							
								
								avformat: don't crash API users when demuxing mp4  
							
							This code is one big chunk of WTF.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b513661251 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Skip ff_configure_buffers_for_index() for local files  
							
							Theres no known case where its use on local files improves performance
if you know of such a case, please contact us
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b183fb4767 
								
							
								 
							
						 
						
							
							
								
								avformat: Add ff_configure_buffers_for_index()  
							
							This allows configuring the io buffer in such way that few seeks are needed for playback
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago