only assess splitting for id_len>1
authorMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 11 Feb 2014 12:58:35 +0000 (13:58 +0100)
committerMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 11 Feb 2014 14:33:24 +0000 (15:33 +0100)
src/encode.c

index a59f42e..fe8b363 100644 (file)
@@ -607,7 +607,10 @@ static int m_select_code_option(struct aec_stream *strm)
     uint32_t se_len;
     struct internal_state *state = strm->state;
 
-    split_len = assess_splitting_option(strm);
+    if (state->id_len > 1)
+        split_len = assess_splitting_option(strm);
+    else
+        split_len = UINT32_MAX;
     se_len = assess_se_option(strm);
 
     if (split_len < state->uncomp_len) {