aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-07 21:33:22 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-07 21:33:22 +0100
commitec7dba8b56dbe654c32adf39be3749d28cad79bd (patch)
tree20fc071e8aae2226a5a91fceceb6fc97812af5c2
parent3fbf8b0332418cbf019c23e6bed9b7d9708e6784 (diff)
downloadfdk-aac-dabplus-ec7dba8b56dbe654c32adf39be3749d28cad79bd.tar.gz
fdk-aac-dabplus-ec7dba8b56dbe654c32adf39be3749d28cad79bd.tar.bz2
fdk-aac-dabplus-ec7dba8b56dbe654c32adf39be3749d28cad79bd.zip
Set nch and dab_extension properly in toolame
-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;