aboutsummaryrefslogtreecommitdiffhomepage
path: root/dvdread/bswap.h
blob: 881f4d36b5bf712cc3f9ad3e99b0bd3f0539ad6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef DVDREAD_BSWAP_H
#define DVDREAD_BSWAP_H

#include "../libavutil/bswap.h"

#ifdef WORDS_BIGENDIAN
#define B2N_16(x)
#define B2N_32(x)
#define B2N_64(x)
#else
#define B2N_16(x) x = bswap_16(x)
#define B2N_32(x) x = bswap_32(x)
#define B2N_64(x) x = bswap_64(x)
#endif

#endif