aboutsummaryrefslogtreecommitdiffstats
path: root/src/video-math.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-08-06 02:52:29 +0200
committerMattias Andrée <maandree@kth.se>2017-08-06 02:52:29 +0200
commitb640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51 (patch)
tree8d1614209eeb045d071349cc2808958647509110 /src/video-math.h
parentUpdate todo (diff)
downloadblind-b640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51.tar.gz
blind-b640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51.tar.bz2
blind-b640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51.tar.xz
Update blind-convert to support unconverted output from ffmpeg and partially converted output
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/video-math.h')
-rw-r--r--src/video-math.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video-math.h b/src/video-math.h
index b768e10..69cc83d 100644
--- a/src/video-math.h
+++ b/src/video-math.h
@@ -139,19 +139,19 @@ degcos_f(float u)
#define htole(A) (_Generic((A),\
uint8_t: (A),\
int8_t: (uint8_t)(A),\
- uint16_t: htole16(A),\
+ uint16_t: htole16((uint16_t)(A)),\
int16_t: (uint16_t)htole16((uint16_t)(A)),\
- uint32_t: htole32(A),\
+ uint32_t: htole32((uint32_t)(A)),\
int32_t: (uint32_t)htole32((uint32_t)(A)),\
- uint64_t: htole64(A),\
+ uint64_t: htole64((uint64_t)(A)),\
int64_t: (uint64_t)htole64((uint64_t)(A))))
#define letoh(A) (_Generic((A),\
uint8_t: (A),\
int8_t: (uint8_t)(A),\
- uint16_t: le16toh(A),\
+ uint16_t: le16toh((uint16_t)(A)),\
int16_t: (uint16_t)le16toh((uint16_t)(A)),\
- uint32_t: le32toh(A),\
+ uint32_t: le32toh((uint32_t)(A)),\
int32_t: (uint32_t)le32toh((uint32_t)(A)),\
- uint64_t: le64toh(A),\
+ uint64_t: le64toh((uint64_t)(A)),\
int64_t: (uint64_t)le64toh((uint64_t)(A))))