From ec7dba8b56dbe654c32adf39be3749d28cad79bd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 7 Mar 2016 21:33:22 +0100 Subject: Set nch and dab_extension properly in toolame --- libtoolame-dab/toolame.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libtoolame-dab') diff --git a/libtoolame-dab/toolame.c b/libtoolame-dab/toolame.c index c975e4b..02cedf6 100644 --- a/libtoolame-dab/toolame.c +++ b/libtoolame-dab/toolame.c @@ -144,7 +144,7 @@ int toolame_init(void) header.copyright = 0; header.original = 0; header.error_protection = TRUE; - header.dab_extension = 1; + header.dab_extension = 4; header.lay = DFLT_LAY; model = DFLT_PSY; @@ -276,14 +276,14 @@ int toolame_encode_frame( size_t output_buffer_size) { extern int minimum; - const int nch = frame.nch; - const int error_protection = header.error_protection; - if (encode_first_call) { hdr_to_frps(&frame); encode_first_call = 0; } + const int nch = frame.nch; + const int error_protection = header.error_protection; + bs.output_buffer = output_buffer; bs.output_buffer_size = output_buffer_size; bs.output_buffer_written = 0; -- cgit v1.2.3