You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
cmdutils: print supported codecs in show_help_bsf()
Tested-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1907,6 +1907,8 @@ static void show_help_bsf(const char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Bit stream filter %s\n", bsf->name);
|
printf("Bit stream filter %s\n", bsf->name);
|
||||||
|
PRINT_CODEC_SUPPORTED(bsf, codec_ids, enum AVCodecID, "codecs",
|
||||||
|
AV_CODEC_ID_NONE, GET_CODEC_NAME);
|
||||||
if (bsf->priv_class)
|
if (bsf->priv_class)
|
||||||
show_help_children(bsf->priv_class, AV_OPT_FLAG_BSF_PARAM);
|
show_help_children(bsf->priv_class, AV_OPT_FLAG_BSF_PARAM);
|
||||||
}
|
}
|
||||||
|
@@ -625,6 +625,9 @@ void *grow_array(void *array, int elem_size, int *size, int new_size);
|
|||||||
#define GET_PIX_FMT_NAME(pix_fmt)\
|
#define GET_PIX_FMT_NAME(pix_fmt)\
|
||||||
const char *name = av_get_pix_fmt_name(pix_fmt);
|
const char *name = av_get_pix_fmt_name(pix_fmt);
|
||||||
|
|
||||||
|
#define GET_CODEC_NAME(id)\
|
||||||
|
const char *name = avcodec_descriptor_get(id)->name;
|
||||||
|
|
||||||
#define GET_SAMPLE_FMT_NAME(sample_fmt)\
|
#define GET_SAMPLE_FMT_NAME(sample_fmt)\
|
||||||
const char *name = av_get_sample_fmt_name(sample_fmt)
|
const char *name = av_get_sample_fmt_name(sample_fmt)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user