omxvideodec: Map OMX_COLOR_FormatYUV420PackedPlanar to I420 too

This is used on the Raspberry Pi.
This commit is contained in:
Sebastian Dröge 2012-12-20 11:56:29 +01:00
parent a80e2b9053
commit 20280afa1f

View 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;