summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKan Hu <kan.hu@linaro.org>2011-05-30 18:23:07 +0300
committerFelipe Contreras <felipe.contreras@nokia.com>2011-05-30 18:23:07 +0300
commitda739770ea2cbb89d45bea1c6942b0bd980abf5a (patch)
tree5d35916e077ab58f20536ed5b5681b89ae0c5301
parent6150457caa29b3ac511e695c93daf727b1aa0d0c (diff)
base_videodec: workaround for non-packed I420 type
Some people use OMX_COLOR_FormatYUV420Planar, some OMX_COLOR_FormatYUV420PackedPlanar. Strictly speaking the format needed in GStreamer is the packed one, but since there's no notion of planes in GStreamer, considering them the same cannot hurt. Would be better if the implementations are fixed, specially if we implement stride/plane support in GStreamer/gst-openmax. Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
-rw-r--r--omx/gstomx_base_videodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomx_base_videodec.c b/omx/gstomx_base_videodec.c
index 9148dec..9a20ba4 100644
--- a/omx/gstomx_base_videodec.c
+++ b/omx/gstomx_base_videodec.c
@@ -61,6 +61,7 @@ settings_changed_cb (GOmxCore * core)
width = param.format.video.nFrameWidth;
height = param.format.video.nFrameHeight;
switch (param.format.video.eColorFormat) {
+ case OMX_COLOR_FormatYUV420Planar:
case OMX_COLOR_FormatYUV420PackedPlanar:
format = GST_MAKE_FOURCC ('I', '4', '2', '0');
break;