2503928a2f 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix style nits  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b2a4316287 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: check av_samples_get_buffer_size() for a negative value  
							
							Fix broken != 0 check. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c65fe9e982 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: check av_samples_get_buffer_size() return code  
							
							Fixes CID1135756.
Signed-off-by: Timothy Gu <timothygu99@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca28cb5f83 
								
							
								 
							
						 
						
							
							
								
								examples: fix doxy so they appear on the example page  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33c4535db7 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: add and use the decode_write_frame function  
							
							Allow to factorize code in video_decode_example(), simplify. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3b8d56e06 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: prefer 'frame' over 'picture' for an AVFrame  
							
							Decrease confusion. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b116a94af 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix misc typos in the usage text  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c4753f7f5 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: remove misplaced and confusing comment  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d6ccbae4c 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: add missing checks on avcodec_alloc_context3()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								51fa653829 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: clarify operations in the usage message  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bcf93f78a5 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: replace "picture" with "frame" in encode_example()  
							
							The use of "picture" in place of "frame" is confusing. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								70b671a283 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: apply various message log fixes  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60924dfe55 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: make operation logic more self-evident / predictable  
							
							Add a switch which controls which operation to perform.  Useful to test
only a single feature. Also the new behavior is more self-consistent. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c0bca6425d 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: store temporary files in current dir  
							
							Do not clutter the temporary directory with files, also "/tmp" is not
always available, e.g. in Windows.
Also add the clean-test Makefile rule, which will clean the generated
files. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fef9e84114 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: tell where the decoding output files are printed  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7219529d1 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: flush audio frames in the encoder  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								535df748c5 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: re-organize frame configuration code  
							
							Put the relevant code in one chunk, also check for frame allocation
failures. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50df68fd50 
								
							
								 
							
						 
						
							
							
								
								doc/examples: print operation filename in decoding_encoding.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6c211085bb 
								
							
								 
							
						 
						
							
							
								
								doc/examples: use system headers in decoding_encoding and muxing.  
							
							All the other examples already use the system installed headers. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								072c2c08bf 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add missing math.h include in decoding/encoding example.  
							
							The header is required for the sin() function. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28d37f7160 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix encoding when all frames got buffered.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e21dac3a4f 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: remove unused variable "size"  
							
							Remove unused variable size from video_encode_example() function.
Fix GCC warning:
decoding_encoding.c:214:22: warning: unused variable ‘size’ [-Wunused-variable] 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb9841297a 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoding_encoding: make the buffer bigger.  
							
							This should be converted to the new API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb73e35660 
								
							
								 
							
						 
						
							
							
								
								example: Update decoding/encoding example to the new API.  
							
							Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e187fd13c 
								
							
								 
							
						 
						
							
							
								
								decoding example: reset pts/dts after subpacket.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								107460c1e9 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: test mpeg1 and h264  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								65e32eea73 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: silence compiler warning  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								98140abe85 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: set a codec private option to demonstrate how to do that  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								82d9fafbb8 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: switch to h264  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be5ac961e0 
								
							
								 
							
						 
						
							
							
								
								examples/encoding: rename to decoding_encoding.c as the file is an example for both.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8e98061ec 
								
							
								 
							
						 
						
							
							
								
								examples/encoding: List more formats to make it more clear to the reader what is not handled in libavcodec.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								00a9ac424e 
								
							
								 
							
						 
						
							
							
								
								examples/encoding.c: adopt a less restrictive license  
							
							Adopt ISC (Internet Systems Consortium) license in place of LGPL,
consistent with the other examples.
Fabrice explicitely approved the relicensing. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c762f9fa2d 
								
							
								 
							
						 
						
							
							
								
								examples/encoding.c: remove unnecessary includes  
							
							Simplify. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2e5a9e580c 
								
							
								 
							
						 
						
							
							
								
								examples/encoding.c: use av_image_alloc() for allocating an image buffer  
							
							Simplify. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7aabda267 
								
							
								 
							
						 
						
							
							
								
								examples/encoding.c: replace "this library" with "libavcodec" in doxy  
							
							So it is more clear the context of the sentence. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ffe3856de7 
								
							
								 
							
						 
						
							
							
								
								examples/encoding.c: remove reference to unexisting file  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26f373988d 
								
							
								 
							
						 
						
							
							
								
								examples/muxing.c: set sample format for encoding  
							
							This is required, or avcodec_open() will abort because of invalid
sample format. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79f3384ce1 
								
							
								 
							
						 
						
							
							
								
								examples: rename "-example" suffix from examples files  
							
							The suffix is redundant since the containing directory itself is
called "examples". Simplify. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca858ab77d 
								
							
								 
							
						 
						
							
							
								
								doc/examples: give meaningful names to the example files  
							
							Rename:
api-example.c    -> encoding-example.c
output-example.c -> muxing-example.c 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c328122a8d 
								
							
								 
							
						 
						
							
							
								
								api-example: uppercase first letter in "copyright"  
							
							Improve consistency. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9362b50941 
								
							
								 
							
						 
						
							
							
								
								examples: move API examples to a dedicated dir in doc  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8ac942d8f5 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: reindent after the previous commit  
							
							Originally committed as revision 23324 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11f6181af1 
								
							
								 
							
						 
						
							
							
								
								api-example: Try to avoid decoding incomplete frames  
							
							Use a larger input audio buffer, refill it when it has less than 4 KB data
left.
Originally committed as revision 23323 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba87f0801d 
								
							
								 
							
						 
						
							
							
								
								Remove explicit filename from Doxygen  @file  commands.  
							
							Passing an explicit filename to this command is only necessary if the
documentation in the @file  block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1c38da85e6 
								
							
								 
							
						 
						
							
							
								
								Allow building api-example from outside of libavcodec and also  
							
							make it more consistent with libavformat/output-example.
Originally committed as revision 20176 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f313925ec 
								
							
								 
							
						 
						
							
							
								
								Use the new avcodec_decode_* API.  
							
							Patch by Thilo Borgmann name.surname AT googlemail.com.
Originally committed as revision 18409 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								504ffed19f 
								
							
								 
							
						 
						
							
							
								
								Mark non-exported functions in test and example programs as static.  
							
							Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c17abaf9d 
								
							
								 
							
						 
						
							
							
								
								Rename apiexample.c --> api-example.c to be consistent with other example files.  
							
							Originally committed as revision 18216 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								29e455081f 
								
							
								 
							
						 
						
							
							
								
								Update apiexample.c to use the newer avcodec_decode_audio2() API. This also  
							
							fixes compilation.
Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago