summaryrefslogtreecommitdiffstats
path: root/libtoolame-dab/toolame.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtoolame-dab/toolame.c')
-rw-r--r--libtoolame-dab/toolame.c8
1 files changed, 4 insertions, 4 deletions
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;