diff options
author | James Almer <jamrial@gmail.com> | 2018-03-21 22:09:45 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-03-22 00:15:05 -0300 |
commit | ead257db560ae0c66c4e834a743f2148e6718f04 (patch) | |
tree | f978bf69c890f7d9794aa9916fac96722bd0cc13 /fftools/cmdutils.h | |
parent | f14ca600015d234f383e9ea5ba5c9f9830271cb3 (diff) | |
download | ffmpeg-ead257db560ae0c66c4e834a743f2148e6718f04.tar.gz |
cmdutils: print supported codecs in show_help_bsf()
Tested-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r-- | fftools/cmdutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index 87244891d4..6e2e0a2acb 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -625,6 +625,9 @@ void *grow_array(void *array, int elem_size, int *size, int new_size); #define 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)\ const char *name = av_get_sample_fmt_name(sample_fmt) |