diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-08-06 02:52:29 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-08-06 02:52:29 +0200 |
| commit | b640dfad6fd5c0ae3a9bfdd9b4bd54e387b0cc51 (patch) | |
| tree | 8d1614209eeb045d071349cc2808958647509110 /src/blind-from-portable.c | |
| parent | Update todo (diff) | |
| download | blind-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/blind-from-portable.c')
| -rw-r--r-- | src/blind-from-portable.c | 12 |
1 files changed, 6 insertions, 6 deletions
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, "<stdout>");\ 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, "<stdout>");\ 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); |
