[vlc-devel] [PATCH] misc: NV12 has 12 bits per pixel like I420

Steve Lhomme robux4 at videolabs.io
Mon Apr 20 12:57:44 CEST 2015


---
 src/misc/es_format.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index e15a8b3..7db4d1c 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -176,6 +176,7 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
     case VLC_CODEC_YV12:
     case VLC_CODEC_I420:
     case VLC_CODEC_J420:
+    case VLC_CODEC_NV12:
         p_fmt->i_bits_per_pixel = 12;
         break;
     case VLC_CODEC_YV9:
-- 
2.3.0




More information about the vlc-devel mailing list