Fix a bug in the compress filter in case of odd buffer sizes.