summaryrefslogtreecommitdiff
path: root/ffprobe.c
Commit message (Collapse)AuthorAge
* ffprobe: show chapter and chapter metadata informationStefano Sabatini2013-06-06
| | | | Address trac ticket #2636.
* ffprobe: set writer context to 0 after allocationStefano Sabatini2013-03-19
| | | | | | | Avoid access to uninitialized values, which may result in a crash. This happens for example in case of option parsing failure, since in that case the internal AVBprint buffers are not initialized.
* ffprobe: remove deprecated frame "reference" fieldStefano Sabatini2013-03-17
|
* ffprobe: support codec optionsStefano Sabatini2013-03-13
| | | | | | | Make ffprobe honour codec options, and support stream specifiers like it is done in ffplay. In particular, address Trac ticket #1859.
* ffprobe: use AVFrame accessor functionsMichael Niedermayer2013-03-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffprobe: do not escape '"' between single quotes.Clément Bœsch2013-01-01
|
* ffprobe: show pkt_size in frameStefano Sabatini2012-12-15
| | | | Fix trac ticket #2027.
* ffprobe: free dictionary in opt_show_entries()Stefano Sabatini2012-11-23
| | | | Fix memleak.
* ffprobe: implement -sections optionStefano Sabatini2012-11-22
|
* ffprobe: implement subsection field selection through the -show_entries optionStefano Sabatini2012-11-22
|
* ffprobe: fix typo in a commentStefano Sabatini2012-11-21
|
* ffprobe: add "," at the end of enum listStefano Sabatini2012-11-21
|
* ffprobe: fix potential NULL pointer dereferenceStefano Sabatini2012-11-06
| | | | Found by Coverity, should fix CID 733741.
* ffprobe: add an array of section print buffers to the WriterContextStefano Sabatini2012-10-24
| | | | | Allow to factorize buffers initialization/release, for all the writers which use it. Simplify.
* ffprobe: fix use of uninitialized pointer in av_strtok()Michael Niedermayer2012-10-11
| | | | | Fixes CID733837 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffprobe: reindent after previous commitStefano Sabatini2012-10-05
|
* ffprobe: add -select_streams optionStefano Sabatini2012-10-05
|
* fix exit_program() prototypesMichael Niedermayer2012-10-02
| | | | | | This fixes 2 warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-02
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ARM: fix Thumb PIC on Apple nut: add do {} while (0) to GET_V tiffenc: Check av_malloc() results. tiffenc: Simplify pixel format setup using AVPixFmtDescriptor. Use atexit() instead of defining a custom exit_program() interface. msvc: Fix detection of VFW & Avisynth required libs Conflicts: ffmpeg.c ffmpeg_opt.c ffplay.c ffprobe.c ffserver.c libavcodec/tiffenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffprobe: extend disposition printing supportStefano Sabatini2012-09-30
| | | | | | | | | | | | | | | | | | | | This generalizes the previous work on disposition printing. Disposition flags are shown in a dedicated section, which should improve output intellegibility, extensibility and filtering operations. This breaks output syntax with the recently introduced disposition printing.
* | ffprobe: generalize nesting model for the XML writerStefano Sabatini2012-09-30
| | | | | | | | | | | | | | | | Do not make use of ad-hoc "tags" code, introduce a new section flag SECTION_FLAG_HAS_VARIABLE_FIELDS to deal with the tags in a content-agnostic way. This is required by the pending disposition change.
* | ffprobe: rework/fix ini writerStefano Sabatini2012-09-29
| | | | | | | | | | | | | | | | Do not build from scratch the section header for each section, but build it using the previous level buffer, thus improving efficiency. Also fix some few corner cases related to numbering which are exposed by the pending disposition patch.
* | ffprobe: rework/fix flat writerStefano Sabatini2012-09-29
| | | | | | | | | | | | Do not build from scratch the section header for each section, but build using the previous level buffer, thus improving efficiency and fix some few corner cases which are exposed by the pending disposition patch.
* | ffprobe: generalize nesting model for the compact writerStefano Sabatini2012-09-29
| | | | | | | | | | | | | | Regular section fields nested in a regular section are now prefixed by the nested section name. This is required by the pending change related to disposition.
* | ffprobe: generalize nesting model for the default writerStefano Sabatini2012-09-29
| | | | | | | | | | | | | | Regular section fields nested in a regular section are now prefixed by the nested section name. This is required by the pending change related to disposition.
* | ffprobe: drop SECTION_ENTRY macroStefano Sabatini2012-09-29
| | | | | | | | The use of the macro makes to add new optional fields somewhat harder.
* | ffprobe: add support to library ident printingStefano Sabatini2012-09-29
| |
* | ffprobe: remove unused "args" argument in writer init callbackStefano Sabatini2012-09-28
| | | | | | | | | | The parameter is no longer used, since the arguments are parsed at the framework level.
* | ffprobe: fix indentation of the first line of packets_and_frames sections in ↵Stefano Sabatini2012-09-27
| | | | | | | | the json output
* | ffprobe: generalize writer subsection nesting modelStefano Sabatini2012-09-26
| | | | | | | | | | | | | | | | | | | | Discard unflexible structure based on the root/chapter/section layout in favor of a generalized concept of section. This should allow to represent sections at a generic level of nesting, and allow subsection fields selection. Also, simplify the code.
* | ffprobe: drop pointless opaque parameter in writer init callbackStefano Sabatini2012-09-25
| | | | | | | | The parameter was never used.
* | ffprobe: reindent after previous commitStefano Sabatini2012-09-25
| |
* | ffprobe: rework checking logic in writer_print_time() and ↵Stefano Sabatini2012-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | writer_print_rational() Make writer_print_time() and writer_print_rational() always call writer_print_int() or writer_print_string(). This way the checks for determining if the value should be printed or not are consistently performed in the low level functions. writer_print_rational() is moved downward in order to avoid a forward reference. Simplify/amend the overall logic.
* | ffprobe: Consider the chosen separator when doing CSV escapingAlexander Strasser2012-09-25
| | | | | | | | Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* | ffprobe: Rename variable in csv_escape_str()Alexander Strasser2012-09-25
| | | | | | | | | | | | Sync to 3245be9 . Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* | ffprobe: Simplify CSV field quoting codeAlexander Strasser2012-09-25
| | | | | | | | | | | | Sync with bac1b31 . Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* | ffprobe: reindent after the previous commitStefano Sabatini2012-09-22
| |
* | ffprobe: add -bitexact boolean optionStefano Sabatini2012-09-22
| | | | | | | | | | The option is mostly useful to make ffprobe output independent from the build, and in particular to fix FATE --enable-small failures.
* | ffprobe: print format long_name only if non-NULLStefano Sabatini2012-09-21
| | | | | | | | | | Fix possible crash when long_name is not defined (for example if --enable-small).
* | ffprobe: print codec_long_name only when availableStefano Sabatini2012-09-21
| | | | | | | | | | Avoid possible segmentation fault if codec_long_name is defined as NULL (for example if --enable-small).
* | ffprobe: fix CSV writer outputStefano Sabatini2012-09-19
| | | | | | | | Fix regression introduced in 749ddc14fc9ebcef09965dfd98c8bf2505dc3b58.
* | ffprobe: Add a few common disposition casesDerek Buitenhuis2012-09-18
| | | | | | | | | | | | | | This info is crucial in knowing which stream to pick in an automated setup. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | ffprobe: kill initializers with nested union field definitionStefano Sabatini2012-09-14
| | | | | | | | | | | | | | | | | | The c99-to-c89 converter (for MSVC support) doesn't currently handle designated initializers or compound literals with nested unions or structs. This is apparently the only place where this construct is used in the FFmpeg codebase.
* | ffprobe: avoid potentially lossy long long int -> double cast in value_string()Stefano Sabatini2012-09-14
| | | | | | | | | | | | Previously the cast long long int -> double was always performed (and then the double was converted back to long long int) even when it was avoidable.
* | ffprobe: print start_pts and duration_ts stream informationStefano Sabatini2012-09-12
| |
* | ffprobe: add priv_class field to Writer, and factorize writer options ↵Stefano Sabatini2012-09-11
| | | | | | | | initialization
* | ffprobe: add print_section option to the compact writerStefano Sabatini2012-09-11
| | | | | | | | | | Allow to skip section name at the begin of each line. Possibly simplify output.
* | ffprobe: add and use DEFINE_WRITER_CLASS macroStefano Sabatini2012-09-11
| | | | | | | | Factorize writer class definition.
* | ffprobe: simplify default printerStefano Sabatini2012-09-10
| | | | | | | | | | | | Remove pointless default_print_footer() and default_print_chapter_header() callbacks, also avoid to print an empty line when noprint_wrappers is selected.
* | ffprobe: avoid unsafe usage of the snprintf() return codeMichael Niedermayer2012-09-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>