mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Use avctx->coded_{width,height} info to create the VA context.
This commit is contained in:
parent
585a273532
commit
1a341a1c02
1 changed files with 3 additions and 3 deletions
|
@ -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:");
|
||||
|
|
Loading…
Reference in a new issue