From 8540e8c3eca73b18b7b5bc7f0b937007b0f81ddd Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Wed, 12 Dec 2007 11:52:27 +0000 Subject: [PATCH] Show which bitstreamfilters were compiled in, similar to the protocols etc enumerations. Originally committed as revision 11203 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 6 ++++++ libavcodec/avcodec.h | 1 + 2 files changed, 7 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 0f02c79ca1..c656663b5f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3322,6 +3322,7 @@ static void opt_show_formats(void) AVOutputFormat *ofmt; URLProtocol *up; AVCodec *p, *p2; + AVBitStreamFilter *bsf; const char *last_name; printf("File formats:\n"); @@ -3417,6 +3418,11 @@ static void opt_show_formats(void) } printf("\n"); + printf("Bitstream filters:\n"); + for(bsf = first_bitstream_filter; bsf != NULL; bsf = bsf->next) + printf(" %s", bsf->name); + printf("\n"); + printf("Supported file protocols:\n"); for(up = first_protocol; up != NULL; up = up->next) printf(" %s:", up->name); diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index a6aeac5475..59f04f832b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2827,6 +2827,7 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, const uint8_t *buf, int buf_size, int keyframe); void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); +extern AVBitStreamFilter *first_bitstream_filter; /* memory */