mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
f_hwtransfer: fix a logic error
Jesus Christ, how did I get this wrong, or never verified proper function. This fixes --vf=vdpaupp not working with yuv420p input.
This commit is contained in:
parent
290341c777
commit
4aa1be44c2
@ -54,8 +54,8 @@ static bool update_format_decision(struct priv *p, int input_fmt)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (int n = 0; n < u->num_fmts; n++) {
|
for (int n = 0; n < u->num_fmts; n++) {
|
||||||
if (u->fmt_upload_index[n] >= index &&
|
if (index >= u->fmt_upload_index[n] &&
|
||||||
index < u->fmt_upload_index[n] + u->fmt_upload_num[n])
|
index < u->fmt_upload_index[n] + u->fmt_upload_num[n])
|
||||||
{
|
{
|
||||||
p->last_input_fmt = input_fmt;
|
p->last_input_fmt = input_fmt;
|
||||||
p->last_upload_fmt = u->upload_fmts[index];
|
p->last_upload_fmt = u->upload_fmts[index];
|
||||||
|
Loading…
Reference in New Issue
Block a user