Use avctx->coded_{width,height} info to create the VA context.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Mon, 3 May 2010 17:04:00 +0000 (17:04 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:43 +0000 (12:55 +0200)
gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c

index 5b32e2c..669022b 100644 (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:");