Commit 856b8782 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan
Browse files

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
parent 6dfd16ba
......@@ -17,7 +17,7 @@ int aom_daala_reader_init(daala_reader *r, const uint8_t *buffer, int size) {
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);
r->accounting = NULL;
......@@ -24,9 +24,5 @@ void aom_daala_stop_encode(daala_writer *br) {
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment