aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-28 09:10:09 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-11 20:46:04 +0200
commite19e8aeeaaff3d4bc8f6065764c93f0298782ac6 (patch)
tree4acf3225ce2695ff1465b933ff305a07613ef3f4 /cmdutils.h
parentdc574658d15ad8f171dbdecbdce7197acf9424a0 (diff)
downloadffmpeg-e19e8aeeaaff3d4bc8f6065764c93f0298782ac6.tar.gz
avtools: move media_type_string() from avprobe to cmdutils.
It will be useful outside of avprobe.
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index 1ae1978ab2..2372b3f387 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -514,6 +514,11 @@ FILE *get_preset_file(char *filename, size_t filename_size,
*/
void *grow_array(void *array, int elem_size, int *size, int new_size);
+/**
+ * Get a string describing a media type.
+ */
+const char *media_type_string(enum AVMediaType media_type);
+
#define GROW_ARRAY(array, nb_elems)\
array = grow_array(array, sizeof(*array), &nb_elems, nb_elems + 1)