From 1a341a1c02866fd0e7bcb9c8258b1cad36b97e93 Mon Sep 17 00:00:00 2001 From: gb Date: Mon, 3 May 2010 17:04:00 +0000 Subject: [PATCH] Use avctx->coded_{width,height} info to create the VA context. --- gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c b/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c index 5b32e2c..669022b 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c @@ -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:"); -- 2.7.4