mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Remove mpbswap.h
This was once central, but now it's almost unused. Only vf_divtc still uses it for extremely weird and incomprehensible reasons. The use in stream.c is trivial. Replace these, and remove mpbswap.h.
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include <libavutil/common.h>
|
||||
#include "osdep/mpbswap.h"
|
||||
#include "osdep/atomics.h"
|
||||
|
||||
#include "talloc.h"
|
||||
@@ -860,7 +859,7 @@ static uint16_t stream_read_word_endian(stream_t *s, bool big_endian)
|
||||
unsigned int y = stream_read_char(s);
|
||||
y = (y << 8) | stream_read_char(s);
|
||||
if (big_endian)
|
||||
y = bswap_16(y);
|
||||
y = (y >> 8) | ((y << 8) & 0xFF);
|
||||
return y;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user