mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
omxvideodec: Map OMX_COLOR_FormatYUV420PackedPlanar to I420 too
This is used on the Raspberry Pi.
This commit is contained in:
parent
a80e2b9053
commit
20280afa1f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue