Skip to content
Snippets Groups Projects
Commit d91e7aac authored by Hendrik Leppkes's avatar Hendrik Leppkes
Browse files

Merge commit '0d3176e3'


* commit '0d3176e3':
  hwcontext_dxva2: do not assume the destination format during mapping is always the right one

Merged-by: default avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 358d4524 0d3176e3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment