mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
Merge commit 'd264c720f7b74286840719e506daba39f83b438b'
* commit 'd264c720f7b74286840719e506daba39f83b438b': lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
eb2da769bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user