Commit eb2da769 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'd264c720'

* commit 'd264c720':
  lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents afccfaf2 d264c720
......@@ -2134,6 +2134,11 @@ enum AVPixelFormat av_get_pix_fmt(const char *name)
snprintf(name2, sizeof(name2), "%s%s", name, X_NE("be", "le"));
pix_fmt = get_pix_fmt_internal(name2);
}
#if FF_API_VAAPI
if (pix_fmt == AV_PIX_FMT_NONE && !strcmp(name, "vaapi"))
pix_fmt = AV_PIX_FMT_VAAPI;
#endif
return pix_fmt;
}
......
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