MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / show_help_bsf

Function show_help_bsf

fftools/opt_common.c:553–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551#endif
552
553static void show_help_bsf(const char *name)
554{
555 const AVBitStreamFilter *bsf = av_bsf_get_by_name(name);
556
557 if (!name) {
558 av_log(NULL, AV_LOG_ERROR, "No bitstream filter name specified.\n");
559 return;
560 } else if (!bsf) {
561 av_log(NULL, AV_LOG_ERROR, "Unknown bit stream filter '%s'.\n", name);
562 return;
563 }
564
565 printf("Bit stream filter %s\n", bsf->name);
566 if (bsf->codec_ids) {
567 const enum AVCodecID *id = bsf->codec_ids;
568 printf(" Supported codecs:");
569 while (*id != AV_CODEC_ID_NONE) {
570 printf(" %s", avcodec_descriptor_get(*id)->name);
571 id++;
572 }
573 printf("\n");
574 }
575 if (bsf->priv_class)
576 show_help_children(bsf->priv_class, AV_OPT_FLAG_BSF_PARAM);
577}
578
579int show_help(void *optctx, const char *opt, const char *arg)
580{

Callers 1

show_helpFunction · 0.85

Calls 4

av_bsf_get_by_nameFunction · 0.85
av_logFunction · 0.85
avcodec_descriptor_getFunction · 0.85
show_help_childrenFunction · 0.85

Tested by

no test coverage detected