Use in-place filtering, like in the decoder (see eb5794da). Change-Id: If037ead45f5cb3461347a63e0e415954d5dcba8b