| 551 | #endif |
| 552 | |
| 553 | static 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 | |
| 579 | int show_help(void *optctx, const char *opt, const char *arg) |
| 580 | { |
no test coverage detected