dd2d3b766b 
								
							
								 
							
						 
						
							
							
								
								lavc: Add hwaccel private data and init/uninit callbacks  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebc29519d1 
								
							
								 
							
						 
						
							
							
								
								hwaccel: Support specific frame allocators  
							
							It would reduce the boilerplate code users have to write. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c1d7246cd 
								
							
								 
							
						 
						
							
							
								
								lavc: set AVCodecContext.hwaccel in ff_get_format()  
							
							This way each decoder does not have to do the same thing manually. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								632ad2248e 
								
							
								 
							
						 
						
							
							
								
								lavc: Add an internal wrapper around get_format()  
							
							It will be useful in the following commits. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7fc9796d8 
								
							
								 
							
						 
						
							
							
								
								lavc: do not use AVCodecContext.codec_name in avcodec_string()  
							
							That field will be deprecated. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6ef96292d9 
								
							
								 
							
						 
						
							
							
								
								utils: add yvyu422 to avcodec_align_dimensions2  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f6774f905f 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: operate with pointers to AVFrames instead of whole structs  
							
							The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().
ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called on
uninitialized or partially initialized Pictures.
NULL pointer checks are added to ff_thread_release_buffer() stub function.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a0f665143 
								
							
								 
							
						 
						
							
							
								
								libavcodec: when decoding, copy replaygain side data to decoded frames  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8feac29cc4 
								
							
								 
							
						 
						
							
							
								
								lavc: use AVFrame API properly in ff_reget_buffer()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52771346dc 
								
							
								 
							
						 
						
							
							
								
								lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								190d4a447b 
								
							
								 
							
						 
						
							
							
								
								avcodec: Suppress deprecation warnings from avcodec_alloc_frame()  
							
							The function is itself obsolete and slated for removal. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0ab5078a7 
								
							
								 
							
						 
						
							
							
								
								lavc: do not force the emu edge flag  
							
							The default get_buffer2() implementation (and possibly some
user ones) does not allocate edges when this flag is set, which may
expose bugs in some decoders. Until the 10 release is out, it is safer
to remove this part. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								93c553c71e 
								
							
								 
							
						 
						
							
							
								
								lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width().  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f7e85ee996 
								
							
								 
							
						 
						
							
							
								
								lavc: allow the caller to override dimensions in ff_get_buffer()  
							
							This will be useful for allocating edges in the encoders. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50079a6aa9 
								
							
								 
							
						 
						
							
							
								
								lavc: do not leak the internal frame if opening the codec fails  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8058284ce0 
								
							
								 
							
						 
						
							
							
								
								lavc: add 422/444 YUV with alpha to align_dimensions()  
							
							Aligns frame dimensions to 16, which fixes potential invalid writes. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b4797a21d 
								
							
								 
							
						 
						
							
							
								
								avframe: add AV_FRAME_DATA_MATRIXENCODING side data type.  
							
							Includes a libavcodec utility function to update a frame's side data. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7b3ee9a3a 
								
							
								 
							
						 
						
							
							
								
								lavc: deprecate avcodec_get_frame_defaults().  
							
							Also bump libavcodec micro and add an APIchanges entry saying that
av_frame_* should now be used instead of the lavc AVFrame functions. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								95a8a5aca6 
								
							
								 
							
						 
						
							
							
								
								lavc: call av_frame_unref() instead of avcodec_get_frame_defaults().  
							
							avcodec_get_frame_defaults() will be deprecated. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9431356218 
								
							
								 
							
						 
						
							
							
								
								lavc: deprecate avcodec_free_frame()  
							
							av_frame_free() should be used instead. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37a749012a 
								
							
								 
							
						 
						
							
							
								
								lavc: rework handling of refcounted_frames=0  
							
							Use only proper AVFrame API (no assigning of whole frames, since that
hardcodes sizeof(AVFrame) into lavc).
Make a copy of the side data, so the caller can use av_frame_unref/free
on non-refcounted frames, eliminating the need for
avcodec_get_frame_defaults()/avcodec_free_frame(). 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1ee164869 
								
							
								 
							
						 
						
							
							
								
								lavc/decode_video(): always unref the frame if there is no output in decode_video  
							
							Not just on failure. This is the same thing that is done in the audio
path and should prevent leaks in decoders that allocate a frame, but
then end up not writing into it. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								85f947aefb 
								
							
								 
							
						 
						
							
							
								
								lavc: remove a pointless check in decode_audio4()  
							
							av_frame_unref() works fine on unallocated frames. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4f0f2d1e8 
								
							
								 
							
						 
						
							
							
								
								lavc: use buf[0] instead of data[0] as the indicator of an allocated frame  
							
							data[0] may be NULL for valid frames with hwaccel pixel formats. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e5419709f5 
								
							
								 
							
						 
						
							
							
								
								lavc: remove the extended_data workarounds.  
							
							All decoders should now handle it properly. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9fb59d2ab 
								
							
								 
							
						 
						
							
							
								
								lavc: deprecate avcodec_alloc_frame().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b9c3b4505 
								
							
								 
							
						 
						
							
							
								
								Replace all instances of avcodec_alloc_frame() with av_frame_alloc().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cce3e0a49f 
								
							
								 
							
						 
						
							
							
								
								Move av_fast_{m,re}alloc from lavc to lavu.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								08303d7741 
								
							
								 
							
						 
						
							
							
								
								hwaccel: Simplify ff_find_hwaccel  
							
							It is always called by passing fields from an AVCodecContext. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da6506c607 
								
							
								 
							
						 
						
							
							
								
								lavc: move AVCodecContext.pkt to AVCodecInternal  
							
							It's a private field, not meant to be accessed from outside lavc. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								38ecc3702d 
								
							
								 
							
						 
						
							
							
								
								pthread: store thread contexts in AVCodecInternal instead of AVCodecContext  
							
							It's a private field, it should not be visible to callers.
Deprecate AVCodecContext.thread_opaque 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0f6c1d6d64 
								
							
								 
							
						 
						
							
							
								
								lavc/utils: stop using deprecated avcodec_set_dimensions  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7644f5a807 
								
							
								 
							
						 
						
							
							
								
								lavc: replace avcodec_set_dimensions with ff_set_dimensions  
							
							avcodec_set_dimensions() is supposed to be an internal utility function,
there is no reason whatsoever for it to be public. Therefore deprecate
it. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9589f5a77 
								
							
								 
							
						 
						
							
							
								
								lavc: add error checking to apply_param_change.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e52080cb1 
								
							
								 
							
						 
						
							
							
								
								pcm: support 24-bit/32-bit little-endian planar  
							
							Used by LXF.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e95930eda1 
								
							
								 
							
						 
						
							
							
								
								avcodec/utils: Simplify a condition that combines HAVE_NEON and ARCH_ARM  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7950e519bb 
								
							
								 
							
						 
						
							
							
								
								Disable deprecation warnings for cases where a replacement is available  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								720a1de52f 
								
							
								 
							
						 
						
							
							
								
								lavc: free the padded last frame during audio encoding properly  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								985f34b756 
								
							
								 
							
						 
						
							
							
								
								utils: fix avcodec_flush_buffers pre-reference counting compatibility  
							
							The to_free AVframe must be freed just like the other ones.
Indeed, the calling application may expect all frames to be
released.
(This regression caused use-after-free in VLC with hwaccel.)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								799f57ac96 
								
							
								 
							
						 
						
							
							
								
								lavc: use AVFrame API properly in pad_last_frame().  
							
							This also simplifies the code. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								30e256430e 
								
							
								 
							
						 
						
							
							
								
								lavc/pthread: remove obsolete checks  
							
							Those were useful when avcodec_thread_init() was a public functions. It
was deprecated and removed some time ago, so those checks are not needed
anymore. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6c4ac7b5f 
								
							
								 
							
						 
						
							
							
								
								pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								252c0bfdc0 
								
							
								 
							
						 
						
							
							
								
								lavc: Fix msvc compilation of utils.c with -WX (warnings treated as errors)  
							
							This fixes https://bugzilla.libav.org/show_bug.cgi?id=514 .
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e55e8b2c36 
								
							
								 
							
						 
						
							
							
								
								lavc: do not leak frames in avcodec_decode_audio4  
							
							Notwithstanding the return value the frame should be freed if
is not going to be used.
Reported-by: Matthew Wolenetz <wolenetz@chromium.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6fee1b90ce 
								
							
								 
							
						 
						
							
							
								
								avcodec: Add av_cold attributes to init functions missing them  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								088f38a4f9 
								
							
								 
							
						 
						
							
							
								
								avcodec: Drop unnecessary ff_ name prefixes from static functions  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e036bb7899 
								
							
								 
							
						 
						
							
							
								
								lavc: clear AVBuffers on decoded frames if refcounted_frames is not set  
							
							Otherwise some code might mistakenly think it is allowed to unref those
buffers, which would lead to double unref. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7f46586bf 
								
							
								 
							
						 
						
							
							
								
								ff_get_buffer(): allocate the frame for max(coded,display) dimensions  
							
							Needed e.g. for h264 cropping to work properly. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9de9b828ef 
								
							
								 
							
						 
						
							
							
								
								lavc: don't overwrite display dimensions with coded dimensions.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b93b27edb0 
								
							
								 
							
						 
						
							
							
								
								dsputil: Make dsputil selectable  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago