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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								01bcc2d5c2 
								
							
								 
							
						 
						
							
							
								
								lavc: Drop deprecated destruct_packet related functions  
							
							Deprecated in 10/2012. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a3eb042c7 
								
							
								 
							
						 
						
							
							
								
								Replace av_dlog with normal av_log at trace level  
							
							This applies to every library where performance is not critical. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								4227e4fe74 
								
							
								 
							
						 
						
							
							
								
								lavf: add a convenience function for adding side data to a stream  
							
							
								
							
							
						 
						11 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d6e58497e 
								
							
								 
							
						 
						
							
							
								
								lavf: switch to AVCodecContext.framerate for demuxing  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd239c9a2e 
								
							
								 
							
						 
						
							
							
								
								lavf: Don't drop both pts and dts if timestamps are invalid  
							
							In these cases, only drop dts. Because if we drop both we have no
timestamps at all for some files.
This improves playback of HLS streams from GoPro cameras.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19133e96d3 
								
							
								 
							
						 
						
							
							
								
								lavf: fix memleaks in avformat_find_stream_info()  
							
							When AVFMT_FLAG_NOBUFFER is set, the packets are not added to the
AVFormatContext packet list, so they need to be freed when they are
no longer needed.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b263f8ffe7 
								
							
								 
							
						 
						
							
							
								
								lavf: add AVFormatContext.max_ts_probe  
							
							It allows to configure how long will avformat_find_stream_info() wait
to get the first timestamp. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								30e50c5027 
								
							
								 
							
						 
						
							
							
								
								lavf: eliminate ff_get_audio_frame_size()  
							
							It is basically a wrapper around av_get_audio_frame_duration(), with a
fallback to AVCodecContext.frame_size. However, that field is set only
when the stream codec context is actually used for encoding or decoding,
which is discouraged.
For muxing, it is generally the responsibility of the caller to set the
packet duration.
For demuxing, if the duration is not stored at the container level, it
should be set by the parser.
Therefore, removing the frame_size fallback should not break any
important case. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								019d3fccc4 
								
							
								 
							
						 
						
							
							
								
								Set protocol-level metadata in AVFormatContext any time a packet is read.  
							
							If any option named "metadata" is set inside the context, it is pulled up to
the context and then the option is cleared.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e253a9e2b3 
								
							
								 
							
						 
						
							
							
								
								avformat: Move av_probe_input* to format.c  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7215fcf840 
								
							
								 
							
						 
						
							
							
								
								avformat: Mark AVOutputFormat argument in avformat_query_codec as const  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3d90f27ad5 
								
							
								 
							
						 
						
							
							
								
								avformat_new_stream: make the AVCodec parameter const  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73953df71a 
								
							
								 
							
						 
						
							
							
								
								Replace av_malloc() and memset(0) by av_mallocz()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								194be1f43e 
								
							
								 
							
						 
						
							
							
								
								lavf: switch to AVStream.time_base as the hint for the muxer timebase  
							
							Previously, AVStream.codec.time_base was used for that purpose, which
was quite confusing for the callers. This change also opens the path for
removing AVStream.codec.
The change in the lavf-mkv test is due to the native timebase (1/1000)
being used instead of the default one (1/90000), so the packets are now
sent to the crc muxer in the same order in which they are demuxed
(previously some of them got reordered because of inexact timestamp
conversion). 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2dc265619a 
								
							
								 
							
						 
						
							
							
								
								lavf: group dump functions together  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c23c96b638 
								
							
								 
							
						 
						
							
							
								
								lavf: add av_stream_get_side_data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dcbfb7805a 
								
							
								 
							
						 
						
							
							
								
								probe: Support AAC_LATM in set_codec_from_probe_data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1eb57e1d9b 
								
							
								 
							
						 
						
							
							
								
								lavc: eliminate tb_unreliable()  
							
							If framerate estimation is enabled, it makes sense to always apply it,
instead of limiting it to a few specific cases. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9157463db 
								
							
								 
							
						 
						
							
							
								
								lavf: do not use the parser duration for video  
							
							The parser has no way of knowing video duration, and therefore no video
parsers set it. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25b3258656 
								
							
								 
							
						 
						
							
							
								
								lavf: add an AVStream field for exporting stream-global side data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db9d39b4b5 
								
							
								 
							
						 
						
							
							
								
								avformat: Report the duration analysis reached  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33c859c142 
								
							
								 
							
						 
						
							
							
								
								lavf: ignore attachment streams for interleaving purposes  
							
							Those streams should never get any packets by definition. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78987a88a8 
								
							
								 
							
						 
						
							
							
								
								lavf: include 60 fps in guessed standard frame rates  
							
							Due to what looks like an off-by-one error 60 * 12 * 1001 / 12 * 1001
is not tested as standard frame rate in avformat_find_stream_info(). 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d67cfdeb53 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: Refactor duplicated PRINT macro  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50ecf15712 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: K&R formatting cosmetics  
							
							Also adjust some comment wording / spelling and reorder header #includes. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2115a35974 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_probe_input_buffer more robust  
							
							Always use the actually read size as the offset instead of making
possibly invalid assumptions.
Addresses: CVE-2012-6618 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b76362836 
								
							
								 
							
						 
						
							
							
								
								lavf: use a fixed width type  
							
							It's shorter and more consistent with the rest of the code. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1868e7ee7 
								
							
								 
							
						 
						
							
							
								
								lavf: simplify handling of offset in av_probe_input_buuffer()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3867f3718b 
								
							
								 
							
						 
						
							
							
								
								lavf: remove a pointless check  
							
							AVStream.codec is always non-NULL 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								281a40e18f 
								
							
								 
							
						 
						
							
							
								
								lavf: remove an unneeded call to avcodec_get_frame_defaults().  
							
							avcodec_decode_*() resets the frame itself. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb891b3114 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of avcodec_free_frame with av_frame_free().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f8bc92365 
								
							
								 
							
						 
						
							
							
								
								Add missing #includes for *INT64_MAX and *INT64_C  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b9c3b4505 
								
							
								 
							
						 
						
							
							
								
								Replace all instances of avcodec_alloc_frame() with av_frame_alloc().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ecf442a58b 
								
							
								 
							
						 
						
							
							
								
								lavf: improve support for AVC-Intra files.  
							
							Generate extradata with SPS/PPS based on container dimensions.
Authors of this commit are: Reimar and Thomas Mundt
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1c229cdbc 
								
							
								 
							
						 
						
							
							
								
								lavf: do not use int to store an int64  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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