diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 04:32:00 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 04:32:00 +0100 |
commit | ba346d2469facf500cbcaa9cf9117ce04ea0b6da (patch) | |
tree | fa1e026da22296f8b044c8960c5860377c4fd6e2 /libtoolame-dab/bitstream.c | |
parent | e65ff4adee3a806881e3c1ebe1b273b9b664eb26 (diff) | |
download | fdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.tar.gz fdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.tar.bz2 fdk-aac-ba346d2469facf500cbcaa9cf9117ce04ea0b6da.zip |
Use libtoolame-dab in dabplus-enc
Diffstat (limited to 'libtoolame-dab/bitstream.c')
-rw-r--r-- | libtoolame-dab/bitstream.c | 16 |
1 files changed, 2 insertions, 14 deletions
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; |