summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-01 01:05:17 +0100
committerwm4 <wm4@nowhere>2012-11-01 02:12:18 +0100
commitc6ce1d4b99cd9705378374535c97696cc678dee4 (patch)
treef8e0363146e8aa5114172164c453ce3d88202633 /libvo
parentc59a80b77c16d832cf529c80f88e148f4ad3c038 (diff)
downloadmpv-c6ce1d4b99cd9705378374535c97696cc678dee4.tar.bz2
mpv-c6ce1d4b99cd9705378374535c97696cc678dee4.tar.xz
gl_common: make glFmt2bpp() abort on unknown formats
None of its callers actually checked the return value, and it's a given that they call it only if it can't fail. Replace the non-sense return value (0) by a call to abort().
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 44188481b9..31d9e526e9 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -862,7 +862,7 @@ int glFmt2bpp(GLenum format, GLenum type)
case GL_LUMINANCE_ALPHA:
return 2 * component_size;
}
- return 0; // unknown
+ abort(); // unknown
}
/**