Commit 32e2d537 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vmem: trivial code factorization

parent a23e5957
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vmem.c: memory video driver for vlc * vmem.c: memory video driver for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2008 the VideoLAN team * Copyright (C) 2008 the VideoLAN team
* $Id$ * Copyrgiht (C) 2010 Rémi Denis-Courmont
* *
* Authors: Sam Hocevar <sam@zoy.org> * Authors: Sam Hocevar <sam@zoy.org>
* *
...@@ -141,10 +141,6 @@ static int Open(vlc_object_t *object) ...@@ -141,10 +141,6 @@ static int Open(vlc_object_t *object)
fmt.i_bmask = 0xf800; fmt.i_bmask = 0xf800;
break; break;
case VLC_CODEC_RGB24: case VLC_CODEC_RGB24:
fmt.i_rmask = 0xff0000;
fmt.i_gmask = 0x00ff00;
fmt.i_bmask = 0x0000ff;
break;
case VLC_CODEC_RGB32: case VLC_CODEC_RGB32:
fmt.i_rmask = 0xff0000; fmt.i_rmask = 0xff0000;
fmt.i_gmask = 0x00ff00; fmt.i_gmask = 0x00ff00;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment