f132248028 
								
							
								 
							
						 
						
							
							
								
								avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()  
							
							It is already set to 0 by av_free_packet() 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74e10b6204 
								
							
								 
							
						 
						
							
							
								
								avcodec: for audio encoding, reset output packet when it is not valid  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fa0319b4fd 
								
							
								 
							
						 
						
							
							
								
								avcodec: refactor avcodec_encode_audio2() to merge common branches  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b461cd4deb 
								
							
								 
							
						 
						
							
							
								
								avcodec: remove fallbacks for AVCodec.encode() in avcodec_encode_audio2()  
							
							We no longer have any audio encoders using AVCodec.encode(). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								828bd088f3 
								
							
								 
							
						 
						
							
							
								
								lavc: add sample rate and channel layout to AVFrame.  
							
							Rationale is the same as for video width/height etc. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2bcbd98459 
								
							
								 
							
						 
						
							
							
								
								Remove lowres video decoding  
							
							This feature is complex, of questionable utility, and slows down
normal decoding.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df8d5eaa14 
								
							
								 
							
						 
						
							
							
								
								avcodec_string: Favor AVCodecContext.codec over the default codec.  
							
							This improves output for formats with more than one AVCodec. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c58846f3a8 
								
							
								 
							
						 
						
							
							
								
								avcodec: use align == 0 for default alignment in avcodec_fill_audio_frame()  
							
							Use default alignment in audio_get_buffer() 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1337de0c4b 
								
							
								 
							
						 
						
							
							
								
								avcodec: validate the channel layout vs. channel count for decoders  
							
							Set avctx->channel_layout to 0 if the channel count does not match
avctx->channels. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3c6607eb6f 
								
							
								 
							
						 
						
							
							
								
								avcodec_encode_{audio,video}: only reallocate output packet when it has non-zero size.  
							
							Otherwise realloc would free it, which would result in double free
later. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bc1ef85520 
								
							
								 
							
						 
						
							
							
								
								lavc/avconv: support changing frame sizes in codecs with frame mt.  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1977e0103 
								
							
								 
							
						 
						
							
							
								
								lavc: shrink encoded audio packet size after encoding.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c346f6304c 
								
							
								 
							
						 
						
							
							
								
								adpcm: fix nb_samples rounding for adpcm_ima_dk3, and update reference.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9524cf79df 
								
							
								 
							
						 
						
							
							
								
								avcodec: add av_get_audio_frame_duration() function.  
							
							This is a utility function for the user to get the frame duration based on
the codec id, frame size in bytes, and various AVCodecContext parameters. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6699d07480 
								
							
								 
							
						 
						
							
							
								
								avcodec: add av_get_exact_bits_per_sample() function  
							
							This only returns bits per sample when it is exactly correct. That is, the
codec contains only raw samples with no frame headers or padding. This applies
to basically all PCM codecs and a small subset of ADPCM codecs. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44fe77b350 
								
							
								 
							
						 
						
							
							
								
								lavc: make codec_is_decoder/encoder() public.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7fb6c9225c 
								
							
								 
							
						 
						
							
							
								
								lavc: free the output packet when encoding failed or produced no output.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e42e9b0e4d 
								
							
								 
							
						 
						
							
							
								
								lavc: preserve avpkt->destruct in ff_alloc_packet().  
							
							Also, don't bother with saving/restoring data, av_init_packet doesn't
touch it. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb727387fd 
								
							
								 
							
						 
						
							
							
								
								lavc: shrink encoded video packet size after encoding.  
							
							Based on a patch by Nicolas George <nicolas.george <at> normalesup.org> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d10319d87f 
								
							
								 
							
						 
						
							
							
								
								avcodec_default_reget_buffer(): fix compilation in DEBUG mode  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								03ca0a5b30 
								
							
								 
							
						 
						
							
							
								
								lavc: merge two if()s with the same condition.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d55fa6f9cb 
								
							
								 
							
						 
						
							
							
								
								lavc: factorize setting got_packet_ptr in avcodec_encode_video2()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52953d61ca 
								
							
								 
							
						 
						
							
							
								
								lavc: signal no output when a NULL frame is passed to audio encoder without delay  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								87840eeb71 
								
							
								 
							
						 
						
							
							
								
								avcodec: disallow reget_buffer() if pix_fmt changed.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff311c0918 
								
							
								 
							
						 
						
							
							
								
								lavc: drop encode() support for video.  
							
							All video encoders have been converted to encode2(), all new encoders
should also use only encode2(). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								70749c483c 
								
							
								 
							
						 
						
							
							
								
								avcodec: do not override pts or duration from the audio encoder  
							
							This allows encoders to set pts and/or duration even if they do not use
CODEC_CAP_DELAY. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								91a28b0e8e 
								
							
								 
							
						 
						
							
							
								
								avcodec: add ff_samples_to_time_base() convenience function to internal.h  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9cf0841ef3 
								
							
								 
							
						 
						
							
							
								
								dsputil: Add ff_ prefix to the dsputil*_init* functions  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dcd2b55e1a 
								
							
								 
							
						 
						
							
							
								
								Check AVCodec.pix_fmts in avcodec_open2()  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b758cf7343 
								
							
								 
							
						 
						
							
							
								
								avcodec: set avpkt->size to 0 if encode2() did not output a packet  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a75bc764ec 
								
							
								 
							
						 
						
							
							
								
								avcodec: for audio encoding, set packet dts to packet pts.  
							
							There are no audio encoders which do frame reordering. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52f82a1148 
								
							
								 
							
						 
						
							
							
								
								lavc: add avcodec_encode_video2() that encodes from an AVFrame -> AVPacket  
							
							Deprecate avcodec_encode_video(). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b027c0d07 
								
							
								 
							
						 
						
							
							
								
								dsputil: set STRIDE_ALIGN to 16 for x86 also.  
							
							This fixes crashes in e.g. PNG decoding with SSE2 enabled. In fact, many
x86 optimizations for codecs assume that our buffer strides are 16-byte
aligned. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a670973a7 
								
							
								 
							
						 
						
							
							
								
								ff_alloc_packet: modify the size of the packet to match the requested size  
							
							This will simplify encoders which use this function to request the exact
packet size rather than the maximum size. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								316fc7443b 
								
							
								 
							
						 
						
							
							
								
								avcodec: Add av_fast_padded_malloc().  
							
							Wrapper around av_fast_malloc() that keeps FF_INPUT_BUFFER_PADDING_SIZE
zero-padded bytes at the end of the used buffer.
Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bc90199848 
								
							
								 
							
						 
						
							
							
								
								lavc: set AVCodecContext.codec in avcodec_get_context_defaults3().  
							
							This way, if the AVCodecContext is allocated for a specific codec, the
caller doesn't need to store this codec separately and then pass it
again to avcodec_open2().
It also allows to set codec private options using av_opt_set_* before
opening the codec. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e72ad95f9 
								
							
								 
							
						 
						
							
							
								
								lavc: make avcodec_close() work properly on unopened codecs.  
							
							I.e. free the priv_data and other stuff allocated in
avcodec_alloc_context3() and not segfault. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								af08d9aeea 
								
							
								 
							
						 
						
							
							
								
								lavc: add avcodec_is_open().  
							
							It allows to check whether an AVCodecContext is open in a documented
way. Right now the undocumented way this check is done in lavf/lavc is
by checking whether AVCodecContext.codec is NULL. However it's desirable
to be able to set AVCodecContext.codec before avcodec_open2(). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d9535ad31 
								
							
								 
							
						 
						
							
							
								
								avcodec_align_dimensions2: set only 4 linesizes, not AV_NUM_DATA_POINTERS.  
							
							This function is video-only, so there's no point in setting more
linesizes.
Fixes stack corruption in avplay. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a7dc618c5 
								
							
								 
							
						 
						
							
							
								
								libavcodec: Don't crash in avcodec_encode_audio if time_base isn't set  
							
							Earlier, calling avcodec_encode_audio worked fine even if time_base
wasn't set. Now it crashes due to trying to scale the output pts to
the codec context time base. This affects e.g. VLC.
If no time_base is set for audio codecs, set it to the sample
rate.
CC: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3211932c51 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_AVCODEC_INIT cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								491f443e1f 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_ER cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2d931500b 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_AVCODEC_OPEN cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fbca04e6f6 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_OLD_FF_PICT_TYPES cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a79bb552a 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_THREAD_INIT cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								284e65d64e 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_OLD_SAMPLE_FMT cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								220506d23f 
								
							
								 
							
						 
						
							
							
								
								avcodec: add a new codec_id for CRYO APC IMA ADPCM.  
							
							The stereo layout and extradata is significantly different from that in
Westwood IMA ADPCM, so a separate codec_id is warranted. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b2c75b6e63 
								
							
								 
							
						 
						
							
							
								
								avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()  
							
							This allows audio encoders to optionally take an AVFrame as input and write
encoded output to an AVPacket.
This also adds AVCodec.encode2() which will also be usable by video and
subtitle encoders once support is implemented in the public functions. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ee5fa021f 
								
							
								 
							
						 
						
							
							
								
								avcodec: add a public function, avcodec_fill_audio_frame().  
							
							This is a convenience function for the user to fill audio AVFrame information. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2ff436ef6 
								
							
								 
							
						 
						
							
							
								
								lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()  
							
							Do not fail audio decoding with avcodec_decode_audio3 if user has set a
custom get_buffer. Strictly speaking, this was never allowed by the API,
but it seems that some software packages did so anyways. In order to
unbreak applications (cf. http://bugs.debian.org/655890 ), this change
clarifies the API and overrides the custom get_buffer() with the defaults.
This change is inspired by a similar
commit (c3846e3eba 
							
						 
						13 years ago