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/blind-from-portable.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/blind-from-portable.c') diff --git a/src/blind-from-portable.c b/src/blind-from-portable.c index e80510b..4551ab6 100644 --- a/src/blind-from-portable.c +++ b/src/blind-from-portable.c @@ -57,7 +57,7 @@ static int strict = 1; strict *= !USING_BINARY##BITS;\ if (!strict && sizeof(ITYPE) != sizeof(OTYPE))\ eprintf("-s is supported not on this machine\n");\ - if (stream->endian == HOST_ENDIAN && !strict) {\ + if (stream->endian == HOST && !strict) {\ esend_stream(stream, STDOUT_FILENO, "");\ break;\ }\ @@ -82,7 +82,7 @@ static int strict = 1; do {\ size_t i, n;\ TYPE *buf = (TYPE *)(stream->buf);\ - if (stream->endian == HOST_ENDIAN) {\ + if (stream->endian == HOST) {\ esend_stream(stream, STDOUT_FILENO, "");\ break;\ }\ @@ -124,11 +124,11 @@ main(int argc, char *argv[]) eopen_stream(&stream, NULL); #if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN) - if (stream.endian == LITTLE_ENDIAN) - stream.endian = HOST_ENDIAN; + if (stream.endian == LITTLE) + stream.endian = HOST; #elif defined(HOST_ENDIAN_IS_BIG_ENDIAN) - if (stream.endian == BIG_ENDIAN) - stream.endian = HOST_ENDIAN; + if (stream.endian == BIG) + stream.endian = HOST; #endif SELECT_PROCESS_FUNCTION(&stream); -- cgit v1.2.3-70-g09d2