omxvideodec: Map OMX_COLOR_FormatYUV420PackedPlanar to I420 too
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 20 Dec 2012 10:56:29 +0000 (11:56 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 20 Dec 2012 10:56:29 +0000 (11:56 +0100)
This is used on the Raspberry Pi.

omx/gstomxvideodec.c

index eeb4450..332289b 100644 (file)
@@ -551,6 +551,7 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
 
     switch (port_def.format.video.eColorFormat) {
       case OMX_COLOR_FormatYUV420Planar:
+      case OMX_COLOR_FormatYUV420PackedPlanar:
         format = GST_VIDEO_FORMAT_I420;
         break;
       case OMX_COLOR_FormatYUV420SemiPlanar:
@@ -875,6 +876,7 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
     if (err == OMX_ErrorNone) {
       switch (param.eColorFormat) {
         case OMX_COLOR_FormatYUV420Planar:
+        case OMX_COLOR_FormatYUV420PackedPlanar:
           m = g_slice_new0 (VideoNegotiationMap);
           m->format = GST_VIDEO_FORMAT_I420;
           m->type = param.eColorFormat;