Nicolas George
43ca94a633
ffprobe: use the codec descriptor if no decoder was found.
11 years ago
Stefano Sabatini
1ba59b1cbe
ffprobe: fix scaling of vali in value_string() in case -prefix is selected
...
Fix trac ticket #3523 .
11 years ago
Michael Niedermayer
ca6dd53a73
ffprobe: do not lose non ascii characters in non utf8 strings
...
Fixes Ticket3363
Using U+FFFD REPLACEMENT CHARACTER as suggested by nicolas
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Nicolas George
a55692a960
ffprobe: check av_frame_alloc() failure.
11 years ago
Michael Niedermayer
565f786d1d
ffprobe: Dont clear AVFrame between uses.
...
The old API required this clearing in the past, the new API does not
require it.
Fixes memleak
Regression introduced by 37a749012a
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
bf1c87ee7a
ffprobe: drop dependancy on sizeof(AVFrame)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
wm4
5f6c21117f
ffprobe: show best_effort_timestamp in the frame section
...
This is useful for debugging.
Reference and ffprobe.xsd changes done and tested by Stefano Sabatini.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years ago
Stefano Sabatini
66a703ea01
ffprobe: only show tags when explicitly requested
11 years ago
Stefano Sabatini
65a3429e7a
ffprobe: add cosmetical empty line
11 years ago
Stefano Sabatini
704cc5e75d
ffprobe: free shared writer context on exit
...
Fix leak.
Spotted-by: Michael Niedermayer
11 years ago
Timothy Gu
82b2e9cb1d
build: rename version.h to libavutil/ffversion.h
...
Also the libavutil/ffversion.h will be installed.
Rationale:
* Applications might want to know FFmpeg's version besides the individual
libraries'.
* Avoids file name clash between FFmpeg's ./version.h and lib*/version.h when
a library source file includes both and is compiled on an out-of-tree build.
Fixes #1769 .
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
0075a22f41
Revert "configure: add #include "version.h" to config.h"
...
This reverts commit ca21116b3f
.
Revert suggested by Jamal:
"Bad secondary effect i just noticed: Every time version.h is changed
(git pull for example), anything that includes config.h will be
recompiled. And that means pretty much every single file in the tree.
"
11 years ago
Timothy Gu
ca21116b3f
configure: add #include "version.h" to config.h
...
Avoid clash with version.h of the libraries.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Stefano Sabatini
8bf7ea8ac2
cmdutils: remove this_year constant, use CONFIG_THIS_YEAR instead
...
Simplify.
11 years ago
Marton Balint
a02860351d
ffprobe: add support for subtitle frames
...
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years ago
Paul B Mahol
638d79a9d0
ffprobe: use designated initializer for AVClass
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Stefano Sabatini
d20241c9b1
ffprobe: remove various useless ","
...
Nitted-By: ubitux
11 years ago
Stefano Sabatini
cbba331aa0
ffprobe: implement string validation setting
...
This should fix trac tickets #1163 , #2502 .
11 years ago
Stefano Sabatini
11cba3ba9d
ffprobe: add support for nested options in writer contexts
11 years ago
Stefano Sabatini
e87190f5d2
ffprobe: check for errors, and abort immediately
...
This allows to make use of validation features.
11 years ago
Stefano Sabatini
ddaf33f5bb
ffprobe: fix consistency checks in parse_read_intervals()
...
Move array size assert after the count increment, and avoid strchr() NULL
dereference on p.
Should fix FFmpeg coverity issue #1108581 .
11 years ago
Stefano Sabatini
f5b27b6d5f
ffprobe: print stream channel_layout when available
...
Fix trac ticket #3006 .
11 years ago
Stefano Sabatini
7bac6e5cf8
ffprobe: fix uninitialized variable warning
...
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.
11 years ago
Stefano Sabatini
f0606a28de
ffprobe: add -read_intervals option
...
This is also useful to test seeking on an input file.
This also addresses trac ticket #1437 .
11 years ago
Stefano Sabatini
5d12ec8fb7
ffprobe: downgrade log level for non fatal errors in open_input_file()
...
Since the errors are not fatal, it is less confusing not to show them as
errors but as warnings.
Arbitrarily fixes trac ticket #2419 .
11 years ago
Nicolas George
83635ac67b
ffprobe: show bitmap subtitles size.
...
Fix trac ticket #2930 .
11 years ago
Stefano Sabatini
291ad12ea2
ffprobe: show probe_score in the format section
...
Should address trac ticket #2621 .
11 years ago
Florent Tribouilloy
2186a7e547
ffprobe: add -show_programs option
...
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>
12 years ago
Stefano Sabatini
2fcd400669
ffprobe: do not treat array elements as nested in the compact writer
...
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.
12 years ago
Stefano Sabatini
5c616fe48b
ffprobe: always exit 1 in case of errors
...
This is consistent with the other ff* tools, and also avoids spurious
success reports when ret%256 = 0.
12 years ago
Stefano Sabatini
1fc626f8d0
ffprobe: reindent after previous commit
12 years ago
Nicolas George
a334b00cf6
ffprobe: fix exit code with stream specifiers
...
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>
12 years ago
Stefano Sabatini
205092bf47
ffprobe: simplify branching logic in probe_file()
12 years ago
Stefano Sabatini
4da5402256
ffprobe: show chapter and chapter metadata information
...
Address trac ticket #2636 .
12 years ago
Stefano Sabatini
e292d75113
ffprobe: set writer context to 0 after allocation
...
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.
12 years ago
Stefano Sabatini
f7ab23b0d0
ffprobe: remove deprecated frame "reference" field
12 years ago
Stefano Sabatini
1019cef329
ffprobe: support codec options
...
Make ffprobe honour codec options, and support stream specifiers like it
is done in ffplay.
In particular, address Trac ticket #1859 .
12 years ago
Michael Niedermayer
3ded235f59
ffprobe: use AVFrame accessor functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
d079d1d368
ffprobe: do not escape '"' between single quotes.
12 years ago
Stefano Sabatini
1a490df12f
ffprobe: show pkt_size in frame
...
Fix trac ticket #2027 .
12 years ago
Stefano Sabatini
9a7256e8e0
ffprobe: free dictionary in opt_show_entries()
...
Fix memleak.
12 years ago
Stefano Sabatini
c8a5365dcf
ffprobe: implement -sections option
12 years ago
Stefano Sabatini
196765a7cc
ffprobe: implement subsection field selection through the -show_entries option
12 years ago
Stefano Sabatini
64dc383de5
ffprobe: fix typo in a comment
12 years ago
Stefano Sabatini
6ca9c74cc6
ffprobe: add "," at the end of enum list
12 years ago
Stefano Sabatini
29d46d7bce
ffprobe: fix potential NULL pointer dereference
...
Found by Coverity, should fix CID 733741.
12 years ago
Stefano Sabatini
a945607a78
ffprobe: add an array of section print buffers to the WriterContext
...
Allow to factorize buffers initialization/release, for all the writers
which use it. Simplify.
12 years ago
Michael Niedermayer
4334ba043e
ffprobe: fix use of uninitialized pointer in av_strtok()
...
Fixes CID733837
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
531872d763
ffprobe: reindent after previous commit
12 years ago
Stefano Sabatini
3d189d41c1
ffprobe: add -select_streams option
12 years ago