From 88f2586adbcdcb350b2923a82bcb07c5a519bd1d Mon Sep 17 00:00:00 2001 From: Lou Logan Date: Mon, 2 Jun 2014 18:46:04 -0800 Subject: fix various typos Signed-off-by: Lou Logan Signed-off-by: Michael Niedermayer --- libavdevice/opengl_enc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavdevice/opengl_enc.c') diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index 28a01181a0..b5f97e2428 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -66,7 +66,7 @@ /* FF_GL_RED_COMPONENT is used for plannar pixel types. * Only red component is sampled in shaders. - * On some platforms GL_RED is not availabe and GL_LUMINANCE have to be used, + * On some platforms GL_RED is not available and GL_LUMINANCE have to be used, * but since OpenGL 3.0 GL_LUMINANCE is deprecated. * GL_RED produces RGBA = value, 0, 0, 1. * GL_LUMINANCE produces RGBA = value, value, value, 1. @@ -583,7 +583,7 @@ static void opengl_make_ortho(float matrix[16], float left, float right, static av_cold int opengl_read_limits(OpenGLContext *opengl) { static const struct{ - const char *extention; + const char *extension; int major; int minor; } required_extensions[] = { @@ -603,12 +603,12 @@ static av_cold int opengl_read_limits(OpenGLContext *opengl) av_log(opengl, AV_LOG_DEBUG, "OpenGL version: %s\n", version); sscanf(version, "%d.%d", &major, &minor); - for (i = 0; required_extensions[i].extention; i++) { + for (i = 0; required_extensions[i].extension; i++) { if (major < required_extensions[i].major && (major == required_extensions[i].major && minor < required_extensions[i].minor) && - !strstr(extensions, required_extensions[i].extention)) { + !strstr(extensions, required_extensions[i].extension)) { av_log(opengl, AV_LOG_ERROR, "Required extension %s is not supported.\n", - required_extensions[i].extention); + required_extensions[i].extension); av_log(opengl, AV_LOG_DEBUG, "Supported extensions are: %s\n", extensions); return AVERROR(ENOSYS); } -- cgit v1.2.3