mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
fixed query_format (RGB24 supports OSD and is preferred)
based on patch by Alvaro Lopes <alvieboy@alvie.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9020 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4621209542
commit
c9142119d2
@ -208,10 +208,11 @@ static uint32_t query_format(uint32_t format)
|
||||
case IMGFMT_IYUV:
|
||||
case IMGFMT_I420:
|
||||
case IMGFMT_YV12:
|
||||
case IMGFMT_RGB|24:
|
||||
case IMGFMT_BGR|24:
|
||||
case IMGFMT_BGR|32:
|
||||
return 1;
|
||||
return VFCAP_CSP_SUPPORTED;
|
||||
case IMGFMT_RGB|24:
|
||||
return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user