aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
Commit message (Collapse)AuthorAgeFilesLines
* ffprobe: check av_frame_alloc() failure.Nicolas George2014-01-071-0/+4
| | | | | | (cherry picked from commit a55692a96099c40aabb25e1443890be99f9c845c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffprobe: Dont clear AVFrame between uses.Michael Niedermayer2014-01-071-1/+0
| | | | | | | | | | | | | The old API required this clearing in the past, the new API does not require it. Fixes memleak Regression introduced by 37a749012aaacc801fe860428417a6d7b81c103f Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 565f786d1da1fea80fcea231550d5d0f174c009a) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffprobe: drop dependancy on sizeof(AVFrame)Michael Niedermayer2014-01-071-3/+5
| | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit bf1c87ee7ab1b98c1b92172eb1ebd6ad55564ff7) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffprobe: fix consistency checks in parse_read_intervals()Stefano Sabatini2013-10-211-3/+5
| | | | | | | Move array size assert after the count increment, and avoid strchr() NULL dereference on p. Should fix FFmpeg coverity issue #1108581.
* ffprobe: print stream channel_layout when availableStefano Sabatini2013-10-031-0/+9
| | | | Fix trac ticket #3006.
* ffprobe: fix uninitialized variable warningStefano Sabatini2013-09-231-1/+1
| | | | | | | | Fix warning: ffprobe.c:1684:21: warning: ‘start’ may be used uninitialized in this function [-Wmaybe-uninitialized] end = start + interval->end; The warning is a false positive, since the variable is accessed only if has_start is set, and in that case start has been already set.
* ffprobe: add -read_intervals optionStefano Sabatini2013-09-191-2/+255
| | | | | | This is also useful to test seeking on an input file. This also addresses trac ticket #1437.
* ffprobe: downgrade log level for non fatal errors in open_input_file()Stefano Sabatini2013-09-171-3/+3
| | | | | | | Since the errors are not fatal, it is less confusing not to show them as errors but as warnings. Arbitrarily fixes trac ticket #2419.
* ffprobe: show bitmap subtitles size.Nicolas George2013-09-041-0/+11
| | | | Fix trac ticket #2930.
* ffprobe: show probe_score in the format sectionStefano Sabatini2013-09-011-0/+1
| | | | Should address trac ticket #2621.
* ffprobe: add -show_programs optionFlorent Tribouilloy2013-07-281-8/+70
| | | | | | | The option is used to sort the streams by program. Signed-off-by: Florent Tribouilloy <florent.tribouilloy@smartjog.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* ffprobe: do not treat array elements as nested in the compact writerStefano Sabatini2013-07-281-4/+17
| | | | | | | | This fixes rendering of sections containing nested elements followed by an array, for example as in the case: programs->streams->stream enabled by the -show_programs option.
* Merge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'Michael Niedermayer2013-07-081-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | * commit '636ced8e1dc8248a1353b416240b93d70ad03edb': cmdutils: wrap exit explicitly Conflicts: avprobe.c cmdutils.c ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffprobe: always exit 1 in case of errorsStefano Sabatini2013-06-271-1/+1
| | | | | | | | | | This is consistent with the other ff* tools, and also avoids spurious success reports when ret%256 = 0.
* | ffprobe: reindent after previous commitStefano Sabatini2013-06-271-44/+43
| |
* | ffprobe: fix exit code with stream specifiersNicolas George2013-06-271-0/+1
| | | | | | | | | | | | | | Without this fix, ffprobe would exit with a failure exit code if a stream specifier is given that selects the last stream. Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
* | ffprobe: simplify branching logic in probe_file()Stefano Sabatini2013-06-271-2/+5
| |
* | ffprobe: show chapter and chapter metadata informationStefano Sabatini2013-06-061-2/+35
| | | | | | | | Address trac ticket #2636.
* | ffprobe: set writer context to 0 after allocationStefano Sabatini2013-03-191-1/+1
| | | | | | | | | | | | | | 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-171-1/+0
| |
* | ffprobe: support codec optionsStefano Sabatini2013-03-131-6/+21
| | | | | | | | | | | | | | 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-011-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffprobe: do not escape '"' between single quotes.Clément Bœsch2013-01-011-4/+4
| |
* | ffprobe: show pkt_size in frameStefano Sabatini2012-12-151-0/+2
| | | | | | | | Fix trac ticket #2027.
* | ffprobe: free dictionary in opt_show_entries()Stefano Sabatini2012-11-231-0/+1
| | | | | | | | Fix memleak.
* | ffprobe: implement -sections optionStefano Sabatini2012-11-221-0/+30
| |
* | ffprobe: implement subsection field selection through the -show_entries optionStefano Sabatini2012-11-221-40/+187
| |
* | ffprobe: fix typo in a commentStefano Sabatini2012-11-211-1/+1
| |
* | ffprobe: add "," at the end of enum listStefano Sabatini2012-11-211-1/+1
| |
* | ffprobe: fix potential NULL pointer dereferenceStefano Sabatini2012-11-061-2/+2
| | | | | | | | Found by Coverity, should fix CID 733741.
* | ffprobe: add an array of section print buffers to the WriterContextStefano Sabatini2012-10-241-89/+27
| | | | | | | | | | 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-111-0/+4
| | | | | | | | | | Fixes CID733837 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffprobe: reindent after previous commitStefano Sabatini2012-10-051-9/+9
| |
* | ffprobe: add -select_streams optionStefano Sabatini2012-10-051-2/+27
| |
* | fix exit_program() prototypesMichael Niedermayer2012-10-021-1/+1
| | | | | | | | | | | | This fixes 2 warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-021-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-301-6/+22
| | | | | | | | | | | | | | | | | | | | 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-301-11/+13
| | | | | | | | | | | | | | | | 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-291-15/+35
| | | | | | | | | | | | | | | | 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-291-20/+17
| | | | | | | | | | | | 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-291-11/+31
| | | | | | | | | | | | | | 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-291-15/+40
| | | | | | | | | | | | | | 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-291-19/+16
| | | | | | | | The use of the macro makes to add new optional fields somewhat harder.
* | ffprobe: add support to library ident printingStefano Sabatini2012-09-291-0/+1
| |
* | ffprobe: remove unused "args" argument in writer init callbackStefano Sabatini2012-09-281-6/+6
| | | | | | | | | | 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-271-1/+1
| | | | | | | | the json output
* | ffprobe: generalize writer subsection nesting modelStefano Sabatini2012-09-261-435/+374
| | | | | | | | | | | | | | | | | | | | 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-251-10/+9
| | | | | | | | The parameter was never used.
* | ffprobe: reindent after previous commitStefano Sabatini2012-09-251-10/+10
| |
* | ffprobe: rework checking logic in writer_print_time() and ↵Stefano Sabatini2012-09-251-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.