Use avctx->coded_{width,height} info to create the VA context.

This commit is contained in:
gb 2010-05-03 17:04:00 +00:00 committed by Gwenole Beauchesne
parent 585a273532
commit 1a341a1c02

View file

@ -164,15 +164,15 @@ get_context(AVCodecContext *avctx)
GstVaapiContext *context;
gboolean success;
if (!avctx->width || !avctx->height)
if (!avctx->coded_width || !avctx->coded_height)
return NULL;
success = gst_vaapi_decoder_ensure_context(
decoder,
vactx->profile,
vactx->entrypoint,
avctx->width,
avctx->height
avctx->coded_width,
avctx->coded_height
);
if (!success) {
GST_DEBUG("failed to reset VA context:");