diff options
author | wm4 <wm4@nowhere> | 2012-11-01 01:05:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:12:18 +0100 |
commit | c6ce1d4b99cd9705378374535c97696cc678dee4 (patch) | |
tree | f8e0363146e8aa5114172164c453ce3d88202633 | |
parent | c59a80b77c16d832cf529c80f88e148f4ad3c038 (diff) | |
download | mpv-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().
-rw-r--r-- | libvo/gl_common.c | 2 |
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 } /** |