From b640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 6 Aug 2017 02:52:29 +0200 Subject: Update blind-convert to support unconverted output from ffmpeg and partially converted output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/video-math.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/video-math.h') 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)))) -- cgit v1.2.3-70-g09d2