In cases where no quantization is done, transition_bbt was not set, and this led to expected_end_sample being incorrect.
6f91dc0799