summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r--demux/codec_tags.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index accc1d918d..0e7b13ce6d 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -233,6 +233,17 @@ static const char *const type_to_codec[][2] = {
{0}
};
+bool mp_codec_is_image(const char *codec)
+{
+ if (codec) {
+ for (int n = 0; type_to_codec[n][0]; n++) {
+ if (strcasecmp(type_to_codec[n][1], codec) == 0)
+ return true;
+ }
+ }
+ return false;
+}
+
const char *mp_map_type_to_image_codec(const char *type)
{
if (type) {