Remove '0' byte at the end of the compressed frame This isn't needed anymore, now that the super frame index is transmitted before the frames. Change-Id: I8dfb514e59f2df4c2d6697f0ef27fe591fc3b4a2
diff --git a/aom_dsp/daalaboolreader.c b/aom_dsp/daalaboolreader.c index 0fc7b14..c6e3ac8 100644 --- a/aom_dsp/daalaboolreader.c +++ b/aom_dsp/daalaboolreader.c
@@ -17,7 +17,7 @@ } r->buffer_end = buffer + size; r->buffer = buffer; - od_ec_dec_init(&r->ec, buffer, size - 1); + od_ec_dec_init(&r->ec, buffer, size); #if CONFIG_ACCOUNTING r->accounting = NULL; #endif
diff --git a/aom_dsp/daalaboolwriter.c b/aom_dsp/daalaboolwriter.c index 0ba8f6a..59af2a2 100644 --- a/aom_dsp/daalaboolwriter.c +++ b/aom_dsp/daalaboolwriter.c
@@ -24,9 +24,5 @@ daala_data = od_ec_enc_done(&br->ec, &daala_bytes); memcpy(br->buffer, daala_data, daala_bytes); br->pos = daala_bytes; - /* Prevent ec bitstream from being detected as a superframe marker. - Must always be added, so that rawbits knows the exact length of the - bitstream. */ - br->buffer[br->pos++] = 0; od_ec_enc_clear(&br->ec); }