mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
cmdutils: omit deprecated codec ids in help output
These ids should be meaningless for the end user and would only confuse Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
375a0c03a9
commit
978c193d47
@ -1385,6 +1385,9 @@ int show_codecs(void *optctx, const char *opt, const char *arg)
|
|||||||
const AVCodecDescriptor *desc = codecs[i];
|
const AVCodecDescriptor *desc = codecs[i];
|
||||||
const AVCodec *codec = NULL;
|
const AVCodec *codec = NULL;
|
||||||
|
|
||||||
|
if (strstr(desc->name, "_deprecated"))
|
||||||
|
continue;
|
||||||
|
|
||||||
printf(" ");
|
printf(" ");
|
||||||
printf(avcodec_find_decoder(desc->id) ? "D" : ".");
|
printf(avcodec_find_decoder(desc->id) ? "D" : ".");
|
||||||
printf(avcodec_find_encoder(desc->id) ? "E" : ".");
|
printf(avcodec_find_encoder(desc->id) ? "E" : ".");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user