From ba346d2469facf500cbcaa9cf9117ce04ea0b6da Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 15 Feb 2016 04:32:00 +0100 Subject: Use libtoolame-dab in dabplus-enc --- libtoolame-dab/bitstream.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'libtoolame-dab/bitstream.c') diff --git a/libtoolame-dab/bitstream.c b/libtoolame-dab/bitstream.c index 3417c89..4346d60 100644 --- a/libtoolame-dab/bitstream.c +++ b/libtoolame-dab/bitstream.c @@ -127,23 +127,11 @@ void empty_buffer (Bit_stream_struc * bs, int minimum) /* open the device to write the bit stream into it */ -void open_bit_stream_w (Bit_stream_struc * bs, char *bs_filenam, int size) +void open_bit_stream_w (Bit_stream_struc * bs, int size) { bs->zmq_sock = NULL; - if (bs_filenam[0] == '-') - bs->pt = stdout; - else if (strncmp(bs_filenam, "tcp://", 4) == 0) { - if (zmqoutput_open(bs, bs_filenam) != 0) { - fprintf(stderr, "Could not initialise ZMQ\n"); - exit(1); - } - bs->pt = NULL; // we're not using file output - } - else if ((bs->pt = fopen (bs_filenam, "wb")) == NULL) { - fprintf (stderr, "Could not create \"%s\".\n", bs_filenam); - exit (1); - } + bs->pt = NULL; // we're not using file output alloc_buffer (bs, size); bs->buf_byte_idx = size - 1; bs->buf_bit_idx = 8; -- cgit v1.2.3