summaryrefslogtreecommitdiff
path: root/sys/mfc
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-01-02 16:09:15 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-01-02 16:09:15 +0100
commit8ed83478669eabbb1fa3c3fecaeb638272d35d2f (patch)
treef761589d869426d50497b68ab4a91f5ffe367c30 /sys/mfc
parent710b7c3f2e6143aeff52a861a6162a8a639c71bc (diff)
downloadgstreamer-plugins-bad-8ed83478669eabbb1fa3c3fecaeb638272d35d2f.tar.gz
mfc: Prefer NV12 over I420/YV12
Diffstat (limited to 'sys/mfc')
-rw-r--r--sys/mfc/gstmfcdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mfc/gstmfcdec.c b/sys/mfc/gstmfcdec.c
index 4a281b4e0..9822633c1 100644
--- a/sys/mfc/gstmfcdec.c
+++ b/sys/mfc/gstmfcdec.c
@@ -80,7 +80,7 @@ static GstStaticPadTemplate gst_mfc_dec_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
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* */
@@ -483,7 +483,7 @@ gst_mfc_dec_negotiate (GstVideoDecoder * decoder)
GstMFCDec *self = GST_MFC_DEC (decoder);
GstVideoCodecState *state;
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_caps_truncate (allowed_caps);