00c3b67b8a 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Align codec declarations  
							
							Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae2c33b0c2 
								
							
								 
							
						 
						
							
							
								
								cosmetics: remove superfluous curly brackets  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83fc7341a7 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: switch to ff_alloc_packet2().  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8ccf545b95 
								
							
								 
							
						 
						
							
							
								
								libopencore-amrnbenc: use AVCodec.encode2()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								adbf61ff8a 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: do not set AVCodecContext.frame_size  
							
							It is not necessary 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe78470a8b 
								
							
								 
							
						 
						
							
							
								
								libopencore-amrnbenc: fix end-of-stream handling  
							
							Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush
the encoder at the end of encoding. This is needed in order to have all input
samples decoded. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8bdf2405c 
								
							
								 
							
						 
						
							
							
								
								check for coded_frame allocation failure in several audio encoders  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f913f3788a 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: fix memleak  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								766e160e87 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: check return value of avcodec_alloc_frame()  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0eea212943 
								
							
								 
							
						 
						
							
							
								
								Add avcodec_decode_audio4().  
							
							Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a6a29a7fb 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: check output buffer size before decoding  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								345d15d2f9 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: remove unneeded buf_size==0 check.  
							
							avcodec_decode_audio3() already checks it before sending the packet to the
decoder. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								402c98783d 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: remove unneeded frame_count field.  
							
							Use AVCodecContext.frame_number instead. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								145f741e11 
								
							
								 
							
						 
						
							
							
								
								AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec6402b7c5 
								
							
								 
							
						 
						
							
							
								
								lavc: use designated initialisers for all codecs.  
							
							It's more readable and less prone to breakage. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8dd52d8202 
								
							
								 
							
						 
						
							
							
								
								opencore-amr: Add missing initializer braces to shut up gcc warning.  
							
							This fixes the warning:
libavcodec/libopencore-amr.c:91: warning: missing braces around initializer 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								651b276ef7 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions  
							
							DTX, discontinuous transmission, allows emitting frames with
comfort noise when no voice is detected in the input audio.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3dd82afc74 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed  
							
							Also rename the incorrectly named enc_bitrate to enc_mode, use the
enc_bitrate variable for storing the last chosen bitrate.
This avoids continuous warning log messages if not using an
exactly matching bitrate, while still allowing changing bitrate
at any point.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7073938121 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate  
							
							Dynamically print the supported bitrates from the local table,
instead of using a hardcoded log message.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								882221afde 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Cosmetics: Rewrap and align  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02c63a109f 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrbwenc: Rename variables and functions  
							
							Avoid camelCase names for functions and variables.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b9c6405fd 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Convert commented out debug logging into av_dlog  
							
							Also add the avctx as logging context.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89e7e640f7 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Remove an unused state variable  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e03f94d61 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Remove a useless local variable  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c48ce4eb50 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								900a129f4f 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr, libvo-amrwbenc: Return proper error codes in most places  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8ec07c933 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Don't print carriage returns in log messages  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								587331414b 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Remove an old workaround for libamr header weirdness  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								57ddffe843 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Make the opaque encoder pointer a void*  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dbff4da914 
								
							
								 
							
						 
						
							
							
								
								libopencore-amr: Remove unused code fragments  
							
							This parts are heritage from the encoder part from the old
libamr code removed in SVN rev 19365.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7e2df27f8 
								
							
								 
							
						 
						
							
							
								
								Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.  
							
							None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d36beb3f69 
								
							
								 
							
						 
						
							
							
								
								Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.  
							
							None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d6e4c160a 
								
							
								 
							
						 
						
							
							
								
								Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum  
							
							SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72415b2adb 
								
							
								 
							
						 
						
							
							
								
								Define AVMediaType enum, and use it instead of enum CodecType, which  
							
							is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b5f09d31c2 
								
							
								 
							
						 
						
							
							
								
								Make sample_fmts and channel_layouts compound literals const to reduce size of  
							
							.data section.
Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0b175caac8 
								
							
								 
							
						 
						
							
							
								
								Add support for external OpenCORE libraries for AMR-NB/WB support.  
							
							Originally committed as revision 19117 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2ce9a9914 
								
							
								 
							
						 
						
							
							
								
								Use IF1 frame sizes in AMR-WB.  
							
							Patch by Martin Storsjö: martin (remove that) at martin (oh and this too) st
Originally committed as revision 18880 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6532cd55b1 
								
							
								 
							
						 
						
							
							
								
								Move AMR-WB-specific code to the AMR-WB section of the file.  
							
							Fixes compilation when AMR-NB #includes are not available on the system.
Originally committed as revision 18870 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e1424fdc7 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Move AMR-WB-specific code to the AMR-WB part of the file.  
							
							Originally committed as revision 18869 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d8ed5bae6f 
								
							
								 
							
						 
						
							
							
								
								cosmetics: K&R coding style, indent correctly, break overly long lines  
							
							Originally committed as revision 18850 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0c1e12a62 
								
							
								 
							
						 
						
							
							
								
								Replace 'x == 0' if conditions with '!x'.  
							
							Originally committed as revision 18849 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76b58f9f94 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Remove pointless {}.  
							
							Originally committed as revision 18848 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e09989be45 
								
							
								 
							
						 
						
							
							
								
								Surround AMR_WB encoding code by appropriate #ifdefs.  
							
							This will help support the opencore AMR library.
Originally committed as revision 18847 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9c0ef69af7 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Move some more code around to avoid #ifdeffery.  
							
							Originally committed as revision 18846 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c005a3ba59 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Move functions around so that encoding and decoding functions are  
							
							grouped together. This will save some #ifdefs.
Originally committed as revision 18845 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d7d5ede5d 
								
							
								 
							
						 
						
							
							
								
								Remove redundant #if condition. Two CONFIG_LIBAMR_NB blocks were right after  
							
							each other so that the second check was pointless.
Originally committed as revision 18844 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2dfde0811 
								
							
								 
							
						 
						
							
							
								
								Add av_cold attribute to amr_nb decoding/encoding initialization functions.  
							
							Originally committed as revision 18843 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a068a7f1f0 
								
							
								 
							
						 
						
							
							
								
								Drop unused libamr-nb fixed-point glue code.  
							
							Originally committed as revision 18716 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f0ed92df60 
								
							
								 
							
						 
						
							
							
								
								Fix second amr_nb_decode_frame() to also use the new AVPacket argument  
							
							Originally committed as revision 18354 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago