aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-03-09 11:09:30 +0100
committerAnton Khirnov <anton@khirnov.net>2022-03-22 18:49:43 +0100
commitc99b93c5d53d8f4a4f1fafc90f3dfc51467ee02e (patch)
treeb3ec7ac85de5f29f65fc9d567429d16dde411192
parent5e51f5af3360b6b3123f971cc4f773686814fce7 (diff)
downloadffmpeg-c99b93c5d53d8f4a4f1fafc90f3dfc51467ee02e.tar.gz
fftools: drop useless indirection
-rw-r--r--fftools/cmdutils.c4
-rw-r--r--fftools/cmdutils.h2
-rw-r--r--fftools/ffmpeg.c4
3 files changed, 4 insertions, 6 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 072adb1673..818abad03e 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1980,7 +1980,7 @@ static void show_help_filter(const char *name)
count = avfilter_filter_pad_count(f, 0);
for (i = 0; i < count; i++) {
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i),
- media_type_string(avfilter_pad_get_type(f->inputs, i)));
+ av_get_media_type_string(avfilter_pad_get_type(f->inputs, i)));
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)
printf(" dynamic (depending on the options)\n");
@@ -1991,7 +1991,7 @@ static void show_help_filter(const char *name)
count = avfilter_filter_pad_count(f, 1);
for (i = 0; i < count; i++) {
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i),
- media_type_string(avfilter_pad_get_type(f->outputs, i)));
+ av_get_media_type_string(avfilter_pad_get_type(f->outputs, i)));
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS)
printf(" dynamic (depending on the options)\n");
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index 7d45e79191..0e991c1ccb 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -633,8 +633,6 @@ void *grow_array(void *array, int elem_size, int *size, int new_size);
*/
void *allocate_array_elem(void *array, size_t elem_size, int *nb_elems);
-#define media_type_string av_get_media_type_string
-
#define GROW_ARRAY(array, nb_elems)\
array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 7191650e05..0335b451e3 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1608,7 +1608,7 @@ static void print_final_stats(int64_t total_size)
total_packets += ist->nb_packets;
av_log(NULL, AV_LOG_VERBOSE, " Input stream #%d:%d (%s): ",
- i, j, media_type_string(type));
+ i, j, av_get_media_type_string(type));
av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" packets read (%"PRIu64" bytes); ",
ist->nb_packets, ist->data_size);
@@ -1642,7 +1642,7 @@ static void print_final_stats(int64_t total_size)
total_packets += ost->packets_written;
av_log(NULL, AV_LOG_VERBOSE, " Output stream #%d:%d (%s): ",
- i, j, media_type_string(type));
+ i, j, av_get_media_type_string(type));
if (ost->encoding_needed) {
av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" frames encoded",
ost->frames_encoded);