mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
mfc: Prefer NV12 over I420/YV12
This commit is contained in:
parent
710b7c3f2e
commit
8ed8347866
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ static GstStaticPadTemplate gst_mfc_dec_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ I420, YV12, NV12 }"))
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ NV12, I420, YV12 }"))
|
||||||
);
|
);
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
|
@ -483,7 +483,7 @@ gst_mfc_dec_negotiate (GstVideoDecoder * decoder)
|
||||||
GstMFCDec *self = GST_MFC_DEC (decoder);
|
GstMFCDec *self = GST_MFC_DEC (decoder);
|
||||||
GstVideoCodecState *state;
|
GstVideoCodecState *state;
|
||||||
GstCaps *allowed_caps;
|
GstCaps *allowed_caps;
|
||||||
GstVideoFormat format = GST_VIDEO_FORMAT_I420;
|
GstVideoFormat format = GST_VIDEO_FORMAT_NV12;
|
||||||
|
|
||||||
allowed_caps = gst_pad_get_allowed_caps (GST_VIDEO_DECODER_SRC_PAD (self));
|
allowed_caps = gst_pad_get_allowed_caps (GST_VIDEO_DECODER_SRC_PAD (self));
|
||||||
allowed_caps = gst_caps_truncate (allowed_caps);
|
allowed_caps = gst_caps_truncate (allowed_caps);
|
||||||
|
|
Loading…
Reference in a new issue