diff options
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_vc1.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_vc1.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c index 7ee0594d..d54a18ae 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c @@ -194,11 +194,16 @@ ensure_context(GstVaapiDecoderVC1 *decoder) } if (reset_context) { - reset_context = gst_vaapi_decoder_ensure_context( + GstVaapiContextInfo info; + + info.profile = priv->profile; + info.entrypoint = entrypoint; + info.width = priv->width; + info.height = priv->height; + info.ref_frames = 2; + reset_context = gst_vaapi_decoder_ensure_context( GST_VAAPI_DECODER(decoder), - priv->profile, - entrypoint, - priv->width, priv->height + &info ); if (!reset_context) return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN; |