Anton Khirnov
6d6bd86f2b
fftools/opt_common: stop accessing a private field
...
Stops printing the 'C' flag in -filters output, but it carries no
actionable information anyway.
2024-10-17 10:56:33 +02:00
1709f3830e
fftools/opt_common: add missing newline after printing codecs
...
This fixes
ffmpeg -help bsf=trace_headers =>
Supported codecs: av1 h264 hevc vvc mjpeg mpeg2video vp8 vp9<no newline>
2024-09-09 13:03:04 +02:00
Niklas Haas
69b8405482
fftools/opt_common: switch to avcodec_get_supported_config()
...
While rewriting this macro, I decided to make it a bit more flexible so
it can work for all of the fields (including future fields) in a more
generic way, and to also print the channel layout using an AVBPrint to
avoid hard-coding the assumption that the length is less than 128
characters.
2024-09-08 13:59:29 +02:00
ba7038043a
tools/opt_common: Check for malloc failure
...
Fixes: CID1539100 Negative loop bound
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-05-09 16:17:40 +02:00
Stefano Sabatini
58a1386eaf
fftools/opt_common: show if muxer is device
2024-03-11 16:52:42 +01:00
Anton Khirnov
08bebeb1be
Revert "all: Don't set AVClass.item_name to its default value"
...
Some callers assume that item_name is always set, so this may be
considered an API break.
This reverts commit 0c6203c97a
.
2024-01-20 10:34:48 +01:00
Andreas Rheinhardt
0c6203c97a
all: Don't set AVClass.item_name to its default value
...
Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9;
also avoids relocations.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-12-22 15:12:33 +01:00
Andreas Rheinhardt
739f24d833
fftools/opt_common: Don't add unnecessary " "
...
Before:
D.AIL. smackaudio Smacker audio (decoders: smackaud )
After:
D.AIL. smackaudio Smacker audio (decoders: smackaud)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-08-02 18:15:34 +02:00
Andreas Rheinhardt
41409405d4
fftools/opt_common: Use %c instead of %s to write single char
...
Also combine multiple printfs.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-08-02 18:15:34 +02:00
Andreas Rheinhardt
0368ded1a9
fftools/opt_common: Fix leak on error
...
Fixes Coverity issue #743443 .
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-07-23 17:55:38 +02:00
Anton Khirnov
411e183360
fftools/opt_common: replace report_and_exit() with returning an error code
...
Remove report_and_exit(), as it has no more users.
2023-07-20 20:47:46 +02:00
Anton Khirnov
4adbe2d219
fftools/opt_common: replace exit_program() with returning error codes
2023-07-20 20:40:26 +02:00
Anton Khirnov
02823210d7
fftools/opt_common: stop printing deprecated AV_CODEC_CAP_SUBFRAMES
2023-05-15 10:24:54 +02:00
James Almer
130483449e
fftools/opt_common: check the return value of av_hwdevice_get_type_name before printing it
...
It may be NULL, as is the case for D3D11VA_VLD.
Running "ffmpeg -h decoder=h264" on a Windows build
Before:
Decoder h264 [H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:
Supported hardware devices: dxva2 (null) d3d11va cuda
After:
Decoder h264 [H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:
Supported hardware devices: dxva2 d3d11va cuda
Signed-off-by: James Almer <jamrial@gmail.com>
2022-09-14 09:54:19 -03:00
Andreas Rheinhardt
601faaed92
fftools: Use report_error_then_exit_program() for allocation failures
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-01 14:26:00 +02:00
Gyan Doshi
9ab20b1614
opt_common: note D and T type streams for completeness.
...
Addresses #9784
2022-05-20 23:42:23 +05:30
softworkz
b8ede4d637
fftools/opt_common: add includes of avf headers for clarity
...
Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-05-18 18:01:51 +02:00
James Almer
b04f14136e
fftools/opt_cmdutils: fix printing known channel layouts
...
Look for the generic "USR" labels instead of "?" to skip channels with no
known names, and actually print the decomposition of standard channel layouts.
Signed-off-by: James Almer <jamrial@gmail.com>
2022-03-25 08:42:45 -03:00
Anton Khirnov
a545cb2b9d
fftools/cmdutils: split common option handlers into their own file
2022-03-22 18:49:43 +01:00