diff options
author | Niklas Haas <git@haasn.dev> | 2024-04-05 20:32:00 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-09-08 13:59:29 +0200 |
commit | 377652da19bd1e5b9d81c22a4fce0a78a62b5853 (patch) | |
tree | dc5daa996f9568a9aafcf578f206863187983955 /fftools | |
parent | 69b84054826566ba7aaf4a3b4343418f2d81611f (diff) | |
download | ffmpeg-377652da19bd1e5b9d81c22a4fce0a78a62b5853.tar.gz |
fftools: drop unused/hacky macros
Having macros initialize local variables seems strange to me, and there
are no more current users of these macros. (The one that was commented
out was incorrect anyway, since the macro has changed in the meantime)
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/cmdutils.h | 13 | ||||
-rw-r--r-- | fftools/ffmpeg_filter.c | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index 9609c6c739..9441d5726b 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -530,19 +530,6 @@ void *allocate_array_elem(void *array, size_t elem_size, int *nb_elems); #define GROW_ARRAY(array, nb_elems)\ grow_array((void**)&array, sizeof(*array), &nb_elems, nb_elems + 1) -#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) - -#define GET_SAMPLE_RATE_NAME(rate)\ - char name[16];\ - snprintf(name, sizeof(name), "%d", rate); - double get_rotation(const int32_t *displaymatrix); /* read file contents into a string */ diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index b562e8417c..d54beb26b7 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -416,7 +416,7 @@ static void choose_ ## name (OutputFilterPriv *ofp, AVBPrint *bprint) \ } //DEF_CHOOSE_FORMAT(pix_fmts, enum AVPixelFormat, format, formats, AV_PIX_FMT_NONE, -// GET_PIX_FMT_NAME) +// av_get_pix_fmt_name) DEF_CHOOSE_FORMAT(sample_fmts, enum AVSampleFormat, format, formats, AV_SAMPLE_FMT_NONE, "%s", av_get_sample_fmt_name) |