Commit d91e7aac authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '0d3176e3'

* commit '0d3176e3':
  hwcontext_dxva2: do not assume the destination format during mapping is always the right one
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 358d4524 0d3176e3
......@@ -361,6 +361,10 @@ static int dxva2_map_from(AVHWFramesContext *ctx,
{
int err;
if (dst->format != AV_PIX_FMT_NONE && dst->format != ctx->sw_format)
return AVERROR(ENOSYS);
dst->format = ctx->sw_format;
err = dxva2_map_frame(ctx, dst, src, flags);
if (err < 0)
return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment