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-to-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-to-portable.c')
| -rw-r--r-- | src/blind-to-portable.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blind-to-portable.c b/src/blind-to-portable.c index 07eee62..e5de707 100644 --- a/src/blind-to-portable.c +++ b/src/blind-to-portable.c @@ -74,7 +74,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 == LITTLE_ENDIAN && !strict) {\ + if (stream->endian == LITTLE && !strict) {\ esend_stream(stream, STDOUT_FILENO, "<stdout>");\ break;\ }\ @@ -99,7 +99,7 @@ static int strict = 1; do {\ size_t i, n;\ TYPE *buf = (TYPE *)(stream->buf);\ - if (stream->endian == LITTLE_ENDIAN) {\ + if (stream->endian == LITTLE) {\ esend_stream(stream, STDOUT_FILENO, "<stdout>");\ break;\ }\ @@ -141,11 +141,11 @@ main(int argc, char *argv[]) eopen_stream(&stream, NULL); #if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN) - if (stream.endian == HOST_ENDIAN) - stream.endian = LITTLE_ENDIAN; + if (stream.endian == HOST) + stream.endian = LITTLE; #elif defined(HOST_ENDIAN_IS_BIG_ENDIAN) - if (stream.endian == HOST_ENDIAN) - stream.endian = BIG_ENDIAN; + if (stream.endian == HOST) + stream.endian = BIG; #endif SELECT_PROCESS_FUNCTION(&stream); |
