diff options
author | wm4 <wm4@nowhere> | 2014-06-14 09:58:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-14 09:58:48 +0200 |
commit | 6ab72f976035f094406584795f680d2de8761c2b (patch) | |
tree | a0a78435bd651c01542d510477c8f4d07d20e9b0 /video/out/vo_wayland.c | |
parent | 6842d4bde5977a7bd76c4492e5a27e4b716fd5ec (diff) | |
download | mpv-6ab72f976035f094406584795f680d2de8761c2b.tar.bz2 mpv-6ab72f976035f094406584795f680d2de8761c2b.tar.xz |
video: automatically strip "le" and "be" suffix from pixle format names
These suffixes are annoying when they're redundant, so strip them
automatically. On little endian machines, always strip the "le" suffix,
and on big endian machines vice versa (although I don't think anyone
ever tried to run mpv on a big endian machine).
Since pixel format strings are returned by a certain function and we
can't just change static strings, use a trick to pass a stack buffer
transparently. But this also means the string can't be permanently
stored by the caller, so vf_dlopen.c has to be updated. There seems
to be no other case where this is done, though.
Diffstat (limited to 'video/out/vo_wayland.c')
0 files changed, 0 insertions, 0 deletions