From 6825a61ca202e4fcf3a3d4187e5479c0d2f4c390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 28 Sep 2011 11:44:09 +0300 Subject: [PATCH] omxil: Interpret OMX_COLOR_FormatYUV420SemiPlanar as NV12 Desire Z and Desire HD use OMX_COLOR_FormatYUV420SemiPlanar, which when inspected turns out to be NV12, while Nexus One either reports OMX_QCOM_COLOR_FormatYVU420SemiPlanar (or falsely reports OMX_COLOR_FormatYUV420Planar) which is NV21. Signed-off-by: Jean-Baptiste Kempf --- modules/codec/omxil/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c index 110ea4dc5b..a114f09006 100644 --- a/modules/codec/omxil/utils.c +++ b/modules/codec/omxil/utils.c @@ -349,7 +349,7 @@ static const struct { { VLC_CODEC_I420, OMX_COLOR_FormatYUV420Planar, 3, 1, 2 }, { VLC_CODEC_I420, OMX_COLOR_FormatYUV420PackedPlanar, 3, 1, 2 }, - { VLC_CODEC_NV21, OMX_COLOR_FormatYUV420SemiPlanar, 3, 1, 1 }, + { VLC_CODEC_NV12, OMX_COLOR_FormatYUV420SemiPlanar, 3, 1, 1 }, { VLC_CODEC_NV21, OMX_QCOM_COLOR_FormatYVU420SemiPlanar, 3, 1, 1 }, { VLC_CODEC_YUYV, OMX_COLOR_FormatYCbYCr, 4, 2, 0 }, { VLC_CODEC_YVYU, OMX_COLOR_FormatYCrYCb, 4, 2, 0 }, -- 2.11.4.GIT