avcodec/tiff: Limit filtering to decoded data