summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-04 23:54:53 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-07 10:46:41 +0900
commitd9c42ff9ff01dd1100db816412d5df044bc38a6c (patch)
tree8305e10384c6e50156d94cea9f6629b8c73bd4d1
parente0ad4ec8aab298eefbe74f146028c5eea7e66a1d (diff)
downloadmpv-d9c42ff9ff01dd1100db816412d5df044bc38a6c.tar.bz2
mpv-d9c42ff9ff01dd1100db816412d5df044bc38a6c.tar.xz
audio: drop unused function
(cherry picked from commit 548cd826c24b7f56b597785f0b83a47cbf4a0465)
-rw-r--r--audio/chmap.c9
-rw-r--r--audio/chmap.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/audio/chmap.c b/audio/chmap.c
index 1991d1593d..10ae80bd1b 100644
--- a/audio/chmap.c
+++ b/audio/chmap.c
@@ -171,15 +171,6 @@ bool mp_chmap_equals_reordered(const struct mp_chmap *a, const struct mp_chmap *
return mp_chmap_equals(&t1, &t2);
}
-bool mp_chmap_is_compatible(const struct mp_chmap *a, const struct mp_chmap *b)
-{
- if (mp_chmap_equals(a, b))
- return true;
- if (a->num == b->num && (mp_chmap_is_unknown(a) || mp_chmap_is_unknown(b)))
- return true;
- return false;
-}
-
bool mp_chmap_is_stereo(const struct mp_chmap *src)
{
static const struct mp_chmap stereo = MP_CHMAP_INIT_STEREO;
diff --git a/audio/chmap.h b/audio/chmap.h
index 9ec1c12d7b..1ae4fb0697 100644
--- a/audio/chmap.h
+++ b/audio/chmap.h
@@ -98,7 +98,6 @@ bool mp_chmap_is_empty(const struct mp_chmap *src);
bool mp_chmap_is_unknown(const struct mp_chmap *src);
bool mp_chmap_equals(const struct mp_chmap *a, const struct mp_chmap *b);
bool mp_chmap_equals_reordered(const struct mp_chmap *a, const struct mp_chmap *b);
-bool mp_chmap_is_compatible(const struct mp_chmap *a, const struct mp_chmap *b);
bool mp_chmap_is_stereo(const struct mp_chmap *src);
void mp_chmap_reorder_norm(struct mp_chmap *map);