mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
video: change image format from unsigned int to int in some places
Image formats used to be FourCCs, so unsigned int was better. But now it's annoying and the only difference is that unsigned int is more to type than int.
This commit is contained in:
@@ -126,7 +126,7 @@ struct mp_imgfmt_entry mp_imgfmt_list[] = {
|
||||
{0}
|
||||
};
|
||||
|
||||
unsigned int mp_imgfmt_from_name(bstr name, bool allow_hwaccel)
|
||||
int mp_imgfmt_from_name(bstr name, bool allow_hwaccel)
|
||||
{
|
||||
int img_fmt = 0;
|
||||
for(struct mp_imgfmt_entry *p = mp_imgfmt_list; p->name; ++p) {
|
||||
@@ -147,7 +147,7 @@ unsigned int mp_imgfmt_from_name(bstr name, bool allow_hwaccel)
|
||||
return img_fmt;
|
||||
}
|
||||
|
||||
const char *mp_imgfmt_to_name(unsigned int fmt)
|
||||
const char *mp_imgfmt_to_name(int fmt)
|
||||
{
|
||||
struct mp_imgfmt_entry *p = mp_imgfmt_list;
|
||||
for(; p->name; ++p) {
|
||||
|
||||
Reference in New Issue
Block a user