7768a635c4 
								
							
								 
							
						 
						
							
							
								
								cmdutils: update copyright year to 2013  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b53306178 
								
							
								 
							
						 
						
							
							
								
								cmdutils: we have 2013  
							
							Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba4bcb191a 
								
							
								 
							
						 
						
							
							
								
								cmdutils: implement debug/fdebug log level update differently.  
							
							The old implementation is no longer possibly due to limitations
of the new command line parser.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c661cb6672 
								
							
								 
							
						 
						
							
							
								
								cmdutils: pass number of groups to split_commandline().  
							
							This makes the code simpler and avoids mixing designated and
non-designated initializers in a potentially unsafe way in avconv. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ec1642b60 
								
							
								 
							
						 
						
							
							
								
								cmdutils: don't log an error in opt_default().  
							
							It results in spurious errors when using the new preparser. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c9af5b205 
								
							
								 
							
						 
						
							
							
								
								cmdutils: add a commandline pre-parser.  
							
							It splits the commandline into a more convenient internal representation
for further parsing.
This will allow e.g.
- processing global options first independently of their location on the
  commandline, eliminating ugly hacks for processing e.g. cpuflags
  first
- better options validation and error reporting. It is now possible for
  the parser to know that it's applying an input option to an output
  file or vice versa and act accordingly. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a01c02bcff 
								
							
								 
							
						 
						
							
							
								
								cmdutils: split parse_option().  
							
							Separate the code that searches for the option to use and the code that
actually writes it. The writing code will be reused by the new options
parser. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7fb49639e6 
								
							
								 
							
						 
						
							
							
								
								lavu: make sure av_pix_fmt_desc_next returns a valid pix fmt.  
							
							This is required because there are some "holes" in the list for
compatibility with the fork.
The commit also removes the now unecessary check from cmdutils.
Found-by: wm4 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff953fecff 
								
							
								 
							
						 
						
							
							
								
								lavc: set frame properties in ff_get_buffer().  
							
							There is no point in duplicating this code in every get_buffer()
implementation. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15caccb9be 
								
							
								 
							
						 
						
							
							
								
								cmdutils: Use a configure check for enabling CommandLineToArgvW  
							
							This simplifies the condition to avoid hardcoding the systems
where the function exists. This also simplifies support for
newer Windows API subsets where this function doesn't exist,
such as Windows Phone 8 and the "metro" API subset of Windows 8.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0efcf16a3e 
								
							
								 
							
						 
						
							
							
								
								replace av_log(0, by av_log(NULL,  
							
							The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb8c5e531c 
								
							
								 
							
						 
						
							
							
								
								cmdutils: free the report file name.  
							
							Fix coverity issue 743443, which was a harmless leak. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								926481078b 
								
							
								 
							
						 
						
							
							
								
								lavu/opt: fix av_opt_get_key_value() API.  
							
							Do not skip the end delimiter.
Reserve positive return values.
This is an API break, but the function was introduced less than
two weeks ago. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1a02e884a 
								
							
								 
							
						 
						
							
							
								
								pixdesc: add av_pix_fmt_get_chroma_sub_sample  
							
							Deprecate avcodec_get_chroma_sub_sample. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								769354348a 
								
							
								 
							
						 
						
							
							
								
								PRINT_CODEC_SUPPORTED: fix used variable  
							
							Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1fa47f8dea 
								
							
								 
							
						 
						
							
							
								
								cmdutils: allow to set the report file name.  
							
							The file name can be set by setting the FFREPORT environment
variable to "file=something".
Fix trac ticket #1823 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e6fa5be3c 
								
							
								 
							
						 
						
							
							
								
								Revert "cmdutils: allow specifying the file for -report"  
							
							This reverts commit 841bf0ef24 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								841bf0ef24 
								
							
								 
							
						 
						
							
							
								
								cmdutils: allow specifying the file for -report  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ab79966475 
								
							
								 
							
						 
						
							
							
								
								cmdutils: Conditionally compile libswscale-related bits  
							
							This fixes compilation with libswscale disabled. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5be6192f0 
								
							
								 
							
						 
						
							
							
								
								cmdutils: avoid using cpp directives within printf macro arguments  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
It appears such construct has undefined behavior 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0008e0d632 
								
							
								 
							
						 
						
							
							
								
								cmdutils: fix unclosed file on error  
							
							Fixes CID739865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aa47821344 
								
							
								 
							
						 
						
							
							
								
								cmdutils: remove writes in never read variable  
							
							Fixes CID739868
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3f65eff408 
								
							
								 
							
						 
						
							
							
								
								Include sys/time.h before sys/resource.h  
							
							Some systems require sys/time.h being explicitly included before
sys/resource.h.  The configure check already does this.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								250fe6eeb4 
								
							
								 
							
						 
						
							
							
								
								cmdutils: apply option to codec and format contexts if possible.  
							
							This is needed for setting both contexts -err_detect at once.
Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce739e66f4 
								
							
								 
							
						 
						
							
							
								
								cmdutils: add missing check for ftell() return  
							
							Fixed CID703706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35daf3ca81 
								
							
								 
							
						 
						
							
							
								
								cmdutils: remove unneeded null check  
							
							Fixes CID703769
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b7f1010c8f 
								
							
								 
							
						 
						
							
							
								
								tools: do not use av_pix_fmt_descriptors directly.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b94e4acb48 
								
							
								 
							
						 
						
							
							
								
								cmdutils_read_file: increment *size after writing the trailing \0  
							
							Fixes CID732166. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								716d413c13 
								
							
								 
							
						 
						
							
							
								
								Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e3f9979fa 
								
							
								 
							
						 
						
							
							
								
								Use atexit() instead of defining a custom exit_program() interface.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7200fecd9b 
								
							
								 
							
						 
						
							
							
								
								cmdutils: sort codec lists.  
							
							The lists are sorted first by type (video first)
and then alphabetically by name.
Fix ticket #1669 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d0c6ac0deb 
								
							
								 
							
						 
						
							
							
								
								Fix segfault with -filters option  
							
							Filters now use null pointers to indicate having no input/output pads,
rather than empty lists of pads. We can't assume pad is non-null
anymore.
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1b4496040 
								
							
								 
							
						 
						
							
							
								
								msvc: Add a va_copy compatability macro for msvc  
							
							Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								990450c5bf 
								
							
								 
							
						 
						
							
							
								
								cmdutils: avoid setting data pointers to invalid values in alloc_buffer()  
							
							Fixes bug 352. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11d957fbd8 
								
							
								 
							
						 
						
							
							
								
								avtools: remove the distinction between func_arg and func2_arg.  
							
							func2_arg is the same as func_arg, except it has one additional
parameter. Change all func_arg callbacks to take that parameter (and
ignore it). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2785fa728 
								
							
								 
							
						 
						
							
							
								
								cmdutils: make -codecs print lossy/lossless flags.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								786dadc014 
								
							
								 
							
						 
						
							
							
								
								cmdutils: add -layouts option.  
							
							Extract of the output:
| Individual channels:
| NAME        DESCRIPTION
| FL          front left
| FR          front right
| <snip>
| SDR         surround direct right
|
| Standard channel layouts:
| NAME        DECOMPOSITION
| mono        FC
| stereo      FL+FR
| <snip>
| octagonal   FL+FR+FC+BL+BR+BC+SL+SR
| downmix     DL+DR 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4abb3539a6 
								
							
								 
							
						 
						
							
							
								
								Fix one of the problems with -codecs, -encoders and -decoders.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1bcc76e60 
								
							
								 
							
						 
						
							
							
								
								cmdutils: fix a memleak when specifying an option twice.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9fada2704 
								
							
								 
							
						 
						
							
							
								
								avconv: split printing "main options" into global and per-file.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1136bd362a 
								
							
								 
							
						 
						
							
							
								
								avtools: add -h demuxer/muxer  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a3ad68d36c 
								
							
								 
							
						 
						
							
							
								
								cmdutils: extend -h to allow printing codec details.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c5012127f 
								
							
								 
							
						 
						
							
							
								
								cmdutils: change semantics of show_help_options() and document it.  
							
							Currently it takes a mask and value, such that options for which
(flags & mask) == value.
Change it to take required flags and forbidden flags instead. This is
shorter and simpler to understand. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc4c24a3d3 
								
							
								 
							
						 
						
							
							
								
								avtools: move some newlines to show_help_options().  
							
							Don't require every caller to supply them. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f617135bc9 
								
							
								 
							
						 
						
							
							
								
								avtools: fix show_foo() signatures.  
							
							show_foo() functions are declared as void show_foo(void), but called as
int show_foo(const char*, const char*). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c10194996 
								
							
								 
							
						 
						
							
							
								
								cmdutils: refactor -codecs option.  
							
							Make it print a list of AVCodecDescriptors.
Add new -decoders and -encoders options that print lists of decoders and
encoders respectively. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ad5043e285 
								
							
								 
							
						 
						
							
							
								
								cmdutils: show options in show_help_children only if the context has options  
							
							Avoid to print a pointless name of the context followed by an empty list. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55de89e25d 
								
							
								 
							
						 
						
							
							
								
								cmdutils/alloc_buffer: fix typo  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0629366a2 
								
							
								 
							
						 
						
							
							
								
								lavf: make cmdutils's check_stream_specifier public.  
							
							The new function is called avformat_match_stream_specifier()
and does not include logging the error message. 
							
						 
						13 years ago