diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-01-27 12:38:45 +0200 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-01-27 12:38:45 +0200 |
commit | cffe87df89870ce7a68dc5bc39826bb66f817a57 (patch) | |
tree | e6ae2680c9bc2022e7ac0b337ac1afdf89f18cbf | |
parent | ad2941c44b2a938a31ece1a41474dab687b2cd8f (diff) |
gstvaapiencoder: Fix the negotiation issue with _ENCODED format handling
Don't error out for the video format GST_VIDEO_FORMAT_ENCODED with in gstvaapiencoder,
since the vaaapi context creation (gstvaapicontext.c) can still use the
default chroma type which is YUV420.
https://bugzilla.gnome.org/show_bug.cgi?id=743567
https://bugzilla.gnome.org/show_bug.cgi?id=743035
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c index 520bea4e..430da1e5 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder.c @@ -559,7 +559,7 @@ set_context_info (GstVaapiEncoder * encoder) cip->height = GST_VAAPI_ENCODER_HEIGHT (encoder); cip->ref_frames = encoder->num_ref_frames; - if (!cip->chroma_type) + if (!cip->chroma_type && (format != GST_VIDEO_FORMAT_ENCODED)) goto error_unsupported_format; memset (config, 0, sizeof (*config)); |